A full-stack authentication system built with React and NestJS in a monorepo structure using Turborepo.
auth/
├── apps/
├── frontend/ # React + TypeScript + Vite
└── backend/ # NestJS + MongoDB
- React
- TypeScript
- Vite
- TailwindCSS
- React Router DOM
- React Hook Form
- Zod
- Zustand
- Axios
- NestJS
- MongoDB with Mongoose
- JWT Authentication
- Passport
- Class Validator
- Bcrypt
- Node.js >= 18
- MongoDB instance
- npm or yarn
git clone <repository-url>
cd authnpm installCreate .env files in both frontend and backend apps:
VITE_API_URL=http://localhost:3000PORT=3000
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secretnpm run dev