A feature-rich NestJS starter template with PostgreSQL integration, authentication, and more.
This repository is a Nest framework TypeScript starter template with enhanced features and integrations.
- 👤 User Management
- SignUp (with optional Role)
- SignIn
- User Update
- 🔐 Authentication & Authorization
- JWT Authentication
- Role-based Access Control
- Google OAuth
- Facebook OAuth
- 🔑 Password Management
- Reset Password
- Forgot Password
- 📨 Email Integration
- MailerSend for email services
- 📚 API Documentation
- Swagger UI
- 🔄 Data Handling
- Pagination
- Automatic User Metadata Injection
- 🛠 Developer Tools
- Docker Compose integration
- Database Migrations
$ npm install
First, create roles in the database manually. Then:
# Prepare .env
$ cp .env-example .env
# Set values according to your config
# Development
$ npm run start
# Watch mode
$ npm run start:dev
# Production mode
$ npm run start:prod
# Generate migration
$ npm run migration:generate db/migrations/<name_of_migration>
# Run migration
$ npm run migration:run
# Revert migration
$ npm run migration:revert
We've included several make commands to simplify Docker Compose operations:
# Build Docker images
$ make build
# Start the application and related services in detached mode
$ make start
# Stop the application and related services
$ make stop
# View logs of all services
$ make logs
Access Swagger UI at:
http://<your-domain>:<port>/api
Example: http://localhost:8080/api
- Anamul Haque
- LinkedIn: anamulhaque
- Email: anamulhaque94@gmail.com
- Website - https://nestjs.com
- Twitter - @nestframework
This project is MIT licensed.