What problem does it solve?
Provides senior-level guidance, patterns, and templates to design and implement modular, testable, and secure NestJS TypeScript backends, removing common architecture mistakes and accelerating feature delivery.
Core Features & Use Cases
- Expert module, controller, and service patterns using NestJS dependency injection to enforce separation of concerns and avoid circular dependencies.
- DTO design and validation patterns with class-validator and class-transformer, plus global ValidationPipe configuration.
- Authentication and authorization scaffolding using JWT and Passport, including JwtStrategy, guards, role checks, and global guard application.
- Database integration patterns for TypeORM and Prisma, repository/provider organization, and migration guidance.
- Testing strategy with Jest and Supertest for unit and e2e tests, mocking repositories and creating test modules.
- Migration playbooks for moving Express apps to NestJS (Strangler Fig, adapter patterns) and common pitfalls to avoid.
Quick Start
Scaffold a new NestJS module with a controller, service, DTOs using class-validator, JWT authentication, and unit tests for the service.