What problem does it solve?
Nest.js projects often suffer from tangled module boundaries, DI pitfalls, and inconsistent testing and authentication implementations. This skill provides expert guidance to design scalable module structures, robust dependency injection, and secure, testable Nest.js apps.
Core Features & Use Cases
- Module Architecture & Dependency Injection: design clear module boundaries, avoid circular dependencies, and define reusable providers.
- Controllers, Middleware, Guards, Interceptors & Pipes: implement robust request handling with proper lifecycle and validation.
- Testing Strategies: plan and implement unit and integration tests with Jest and Supertest.
- Database & Authentication Integration: integrate TypeORM/Mongoose and Passport.js authentication with best practices.
- Refactoring Scenarios: migrate monoliths to modular domains, resolve DI issues, and improve test coverage.
Quick Start
Explain your Nest.js project and request architecture optimization. Example: "Analyze a Nest.js app with circular dependencies and propose a module reorganization and DI strategy."