A full-stack authentication system built with NestJS (backend) and Next.js (frontend), featuring secure user authentication and authorization.
- 🔐 Secure JWT-based authentication
- 👤 User management system
- 🔄 TypeORM for database management
- 📝 API documentation with Swagger
- 🎨 Modern UI with Tailwind CSS
- ✨ Type-safe API calls using Orval
This application implements several security best practices:
- Password hashing using bcrypt
- JWT-based authentication
- TypeORM for SQL injection prevention
- Input validation using class-validator
- Secure HTTP-only cookies
- NestJS Framework
- PostgreSQL with TypeORM
- Passport.js for authentication
- JWT for token management
- Class-validator for DTO validation
- Swagger for API documentation
- Orval for generated API hooks
- Next.js Framework
- TailwindCSS for styling
- React Query for API interaction
- Zod for form validation
- React hook form for form handling
-
Install dependencies
yarn install
-
Set up environment variables
cp .env.example .env
-
Start Application
yarn turbo dev
The API documentation can be found at http://[your_url]/docs provided by Swagger