Clerk - Next.js starter repository

This repository shows an example about how to add user authenticating to your Next.js application using Clerk.

Running the starter

You have two option to run the starter, we recommend the one click deployment with Vercel. This way, environment variables are set up for you automatically and it's a much easier experience.

Option 1 - One click deployment with Vercel

You can use the following deployment button from Vercel. For more detailed read our official step by step guide.

Deploy with Vercel

Option 2 - Run manually

To run the example locally you need to:

  1. Click "Use this template" to create a copy of this repository on your GitHub account.
  2. Clone your repository.
  3. Sign up at Clerk.dev.
  4. Go to Clerk's dashboard and create an application.
  5. Setup the required Clerk Frontend API variable from your Clerk project as shown at the example env file.
  6. yarn to install the required dependencies.
  7. yarn dev to launch the development server.

Contact

If you have any specific use case or anything you would like to ask, you can contact us through our support page