rsnext/examples/with-clerk
JTaylor0196 f7baa56792
update example Deploy button URLs (#48842)
### What?
Updates Deploy button URLs for all listed examples here:
https://github.com/vercel/next.js/tree/canary/examples

### Why?
The Deploy URLs are currently broken and result in a failed clone
attempt on Vercel.

### How?
The URLs have been changed from https://vercel.com/new/git/external?… to
-> https://vercel.com/new/clone?…
(Last updated
[here](8eaabe2fb0)
in 2021)
2023-04-26 13:31:44 -04:00
..
components Run next/link codemod for Next.js 13 on examples (#41913) 2022-10-30 21:00:45 +01:00
pages Run next/link codemod for Next.js 13 on examples (#41913) 2022-10-30 21:00:45 +01:00
public Use new @clerk/nextjs package in with-clerk example, update Next.js authentication docs (#28906) 2021-09-17 10:54:34 -05:00
styles Use Font Optimization in examples (#39977) 2022-08-26 18:27:59 +00:00
.env.local.example Updating to latest version of Clerk (#41192) 2022-10-05 17:34:49 +00:00
.gitignore Remove incorrect entries for pnpm debug log (#47241) 2023-03-26 22:26:05 -07:00
middleware.js Updating to latest version of Clerk (#41192) 2022-10-05 17:34:49 +00:00
package.json Updating to latest version of Clerk (#41192) 2022-10-05 17:34:49 +00:00
README.md update example Deploy button URLs (#48842) 2023-04-26 13:31:44 -04:00

Clerk and Next.js Example

This example shows how to use Clerk with Next.js. The example features adding sign up, sign in, profile management, and an authenticated API route to your Next.js application.

Demo

A hosted demo of this example is available at clerk-nextjs-example.vercel.app

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example with-clerk with-clerk-app
yarn create next-app --example with-clerk with-clerk-app
pnpm create next-app --example with-clerk with-clerk-app

To run the example locally you need to:

  1. Sign up at Clerk.dev.
  2. Go to Clerk's dashboard and create an application.
  3. Set the required Clerk environment variables from your Clerk project as shown at the example env file.
  4. yarn to install the required dependencies.
  5. yarn dev to launch the development server.

Learn More

To learn more about Clerk.dev and Next.js, take a look at the following resources: