- Run
npx degit grafbase/grafbase/examples/nextjs grafbase-with-nextjsto clone this example - Change directory into the new folder
cd grafbase-with-nextjs - Run
cp .env.example .env - Open
.envin your code editor, and provide your Grafbase API endpoint and API key - Run
npm install, oryarn installto install dependencies - Run
npm run dev, oryarn devand visithttp://localhost:3000
To learn more about Grafbase, take a look at the following resources:
- Grafbase - learn about Grafbase features and API.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.