A robust, modular, and production-ready NestJS starter kit.
- Authentication: JWT-based auth with Access/Refresh tokens.
- RBAC: Role-Based Access Control (Roles & Permissions).
- Users: Complete CRUD + Pagination.
- Posts: Content management example.
- Storage: Local and S3-compatible file storage.
- Health: System health monitoring.
- Database: Prisma ORM with SQLite (LibSQL ready).
- Validation: DTO validation with
class-validator. - Documentation: OpenAPI/Swagger auto-generated docs.
- Node.js v20+
- pnpm
$ pnpm installCopy .env.example to .env and configure:
cp .env.example .env# development
$ pnpm start:dev
# production mode
$ pnpm start:prodRun the application using Docker Compose:
# Build and start
$ docker-compose up -d --build
# View logs
$ docker-compose logs -f
# Stop
$ docker-compose downPopulate the database with test data (Admin, Users, Posts):
$ pnpm prisma db seedAccess Swagger UI at /api/docs (e.g., http://localhost:3000/api/docs).
# unit tests
$ pnpm test
# e2e tests
$ pnpm test:e2e
# test coverage
$ pnpm test:cov