This examples shows how to connect Clerk as your Identity Provider with your Grafbase project — Read the guide
- Run
npx degit grafbase/grafbase/examples/nextjs-clerk grafbase-with-nextjs-clerkto clone this example - Change directory into the new folder
cd grafbase-with-nextjs-clerk - Run
cp .env.example .env - Run
cp grafbase/.env.example grafbase/.env - Open
.envin your code editor, and provide your Grafbase API endpoint and Clerk API Keys - Open
grafbase/.envin your code editor, and provide your Clerk issuer URL - Run
npm install, oryarn installto install dependencies - Run
npx grafbase devto start local dev server with your schema - Run
npm run dev, oryarn dev(in a new terminal) - Visit http://localhost:3000