Skip to content

get-convex/template-nextjs-clerk

Repository files navigation

Welcome to your Convex + Next.js + Clerk app

This is a Convex project created with npm create convex.

After the initial setup (<2 minutes) you'll have a working full-stack app using:

  • Convex as your backend (database, server logic)
  • React as your frontend (web page interactivity)
  • Next.js for optimized web hosting and page routing
  • Tailwind for building great looking accessible UI
  • Clerk for authentication

Get started

If you just cloned this codebase and didn't use npm create convex, run:

npm install
npm run dev

If you're reading this README on GitHub and want to use this template, run:

npm create convex@latest -- -t nextjs-clerk

Then:

  1. Open your app. There should be a "Claim your application" button from Clerk in the bottom right of your app.
  2. Follow the steps to claim your application and link it to this app.
  3. Follow step 3 in the Convex Clerk onboarding guide to create a Convex JWT template.
  4. Uncomment the Clerk provider in convex/auth.config.ts
  5. Paste the Issuer URL as CLERK_JWT_ISSUER_DOMAIN to your dev deployment environment variable settings on the Convex dashboard (see docs)

If you want to sync Clerk user data via webhooks, check out this example repo.

Learn more

To learn more about developing your project with Convex, check out:

  • The Tour of Convex for a thorough introduction to Convex principles.
  • The rest of Convex docs to learn about all Convex features.
  • Stack for in-depth articles on advanced topics.

Join the community

Join thousands of developers building full-stack apps with Convex:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •