Loading repository data…
Loading repository data…
kamlesh0928 / repository
This project is a full-stack authentication system built with Next.js.
This repository showcases my work on a full-stack authentication system built with Next.js, following Hitesh Choudhary's Next.js Course. It includes user sign-up, login, profile management, and email verification, forgot password.
Clone the Repository:
git clone https://github.com/kamlesh0928/nextjs-auth.git
cd my-app
Install Dependencies:
npm install
Configure Environment Variables:
Create a .env file in the root directory with:
MONGODB_URI=mongodb+srv://<username>:<password>@cluster0.mongodb.net/<dbname>?retryWrites=true&w=majority
TOKEN_SECRET=<your-token-secret>
MAILTRAP_USER=your-mailtrap-user-here
MAILTRAP_PASS=your-mailtrap-pass-here
DOMAIN=<your-domain-url-or-http://localhost:3000>
Run Locally:
npm run dev
Visit http://localhost:3000 to see the app.