Build enterprise-grade NestJS backends faster with authentication, RBAC, Prisma, MongoDB, Redis, and Docker - all preconfigured.
If you've built more than one backend with NestJS, you already know the pain:
Every project starts the same way - authentication, authorization, JWT handling, RBAC, database setup, caching, queues, logging, and security hardening.
That's why I built Complete NestJS Boilerplate - a production-ready NestJS backend boilerplate designed for real-world applications, not demos.
👉 GitHub Repository: https://github.com/fedi-dayeg/complete-nestjs-boilerplate
👉 Official Documentation: https://doc.complete-nestjs-boilerplate.fedidayeg.fr/
What Is Complete NestJS Boilerplate?
Complete NestJS Boilerplate is an enterprise-grade NestJS starter project that provides everything you need to build secure, scalable, and maintainable backends.
It's designed for:
SaaS platforms
Enterprise applications
Mobile app backends
Authentication services
Microservices architectures
Unlike basic NestJS starters, this boilerplate focuses on production concerns from day one.
Why Use a Production-Ready NestJS Boilerplate?
Using a production-ready NestJS boilerplate allows you to:
Ship faster 🚀
Avoid security mistakes 🔐
Follow best architectural practices 🧠
Scale without rewriting core systems 📈
This project follows SOLID principles, the Repository Pattern, and 12-Factor App guidelines.
Tech Stack (Modern & Battle-Tested)
This NestJS boilerplate uses modern, stable technologies trusted in production:
NestJS v11
Node.js v24
TypeScript v5.9
Prisma ORM
MongoDB (Replica Set)
Redis
JWT (ES256 / ES512)
BullMQ
pnpm
Docker & Docker Compose
Swagger / OpenAPI
Authentication & Security (Enterprise-Grade)
Security is not optional in modern applications.
This NestJS authentication boilerplate includes:
JWT authentication with secure algorithms
Stateful sessions using Redis
Token revocation & rotation
Google OAuth & Apple Sign-In
Two-Factor Authentication (TOTP)
Recovery codes
Role-Based Access Control (RBAC)
Policy-based authorization
API key protection
Rate limiting & security headers
📖 Docs:
https://doc.complete-nestjs-boilerplate.fedidayeg.fr/authentication
Database, Prisma & Repository Pattern
This boilerplate uses Prisma ORM with MongoDB, designed to change databases with minimal effort.
Key Benefits
Repository Pattern abstraction
Clean separation of concerns
MongoDB transactions
Redis caching
AWS S3 presigned uploads
Switching to PostgreSQL or MySQL only requires updating Prisma configuration - business logic stays unchanged.
📖 Database docs:
https://doc.complete-nestjs-boilerplate.fedidayeg.fr/database
Performance & Scalability
This NestJS backend boilerplate is built for scale:
Background jobs with BullMQ
Redis-based queues
Feature flags
Server-side pagination
Response compression
SWC compiler for fast builds
Developer Experience & Documentation
A great backend also needs a great developer experience:
Swagger / OpenAPI documentation
Automatic request validation
Standardized error handling
i18n support
Hot reload
ESLint, Prettier & Husky
Database seeding
📖 Full documentation:
https://doc.complete-nestjs-boilerplate.fedidayeg.fr/
Quick Start
git clone https://github.com/fedi-dayeg/complete-nestjs-boilerplate
pnpm install
cp .env.example .env
docker-compose up -d
Then open:
👉 http://localhost:3000/docs
Who Should Use This NestJS Boilerplate?
This project is ideal if you're building:
NestJS SaaS backends
Enterprise NestJS applications
Secure authentication services
Mobile API backends
Microservices with NestJS
If you care about security, scalability, and clean architecture, this boilerplate is for you.
Open Source & Community
This project is open-source (MIT) and actively maintained.
If you find it useful:
⭐ Star the repository
🐛 Report issues
🚀 Suggest features
🤝 Contribute
GitHub: https://github.com/fedi-dayeg/complete-nestjs-boilerplate
Final Thoughts
A backend should help you build features, not slow you down.
Complete NestJS Boilerplate gives you a solid foundation so you can focus on what really matters - delivering value.
👉 Start building: https://github.com/fedi-dayeg/complete-nestjs-boilerplate
Top comments (0)