This is a simple full-stack authentication system built using MongoDB, Express, React, and Node.js.
It supports features like signup, login, email verification, forgot password, password reset, and JWT-based authentication using cookies.
The UI is built with React + Vite + Tailwind CSS + Framer Motion, and the backend uses Express + MongoDB + Mailtrap for emails.
- User Signup & Login
- Email Verification (OTP / Code based)
- JWT Authentication using HTTP-only cookies
- Protected Routes
- Forgot Password & Reset Password flow
- Email sending using Mailtrap
- Password strength meter
- Smooth animations with Framer Motion
- Clean & modern UI
- React (Vite)
- Tailwind CSS
- Zustand (state management)
- Axios
- Framer Motion
- React Router
- Node.js
- Express.js
- MongoDB & Mongoose
- JWT Authentication
- Mailtrap (Email service)
- bcryptjs
- cookie-parser
Create a .env file inside the backend folder and add:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key
MAILTRAP_TOKEN=your_mailtrap_token
CLIENT_URL=http://localhost:5173
NODE_ENV=developmentgit clone https://github.com/your-username/your-repo-name.git
cd your-repo-namecd backend
npm installcd frontend
npm installcd backend
npm run devcd frontend
npm run dev