This is a Next.js Application utilizing Clerk Authentication
First, clone this repository:
git clone https://github.com/Agustine-dev/Nextjs-Auth-with-Clerk.gitTo run the example locally, you need to:
- Sign up for a Clerk account at https://clerk.com.
- Go to the Clerk dashboard and create an application.
- Set the required Clerk environment variables
- Create a .env file and add the variables
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="__TEST_KEY__" CLERK_SECRET_KEY="__TEST_SECRET"
- Go to "Organization Settings" in your sidebar and enable Organizations
npm installthe required dependencies.npm run devto launch the development server.
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
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.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.