When to import a module and when to provide a service in NestJS
Importing module gives you the same instance every time while providing a service creates new instances
18 articles about node.js framework for building scalable server-side applications
Importing module gives you the same instance every time while providing a service creates new instances
Learn how to write minimal but effective documentation, use TypeScript types to reduce comments, and generate API docs automatically with Swagger in NestJS.
Learn how to write clean, maintainable, and effective tests in NestJS, avoiding flaky tests and using mocks and spies efficiently.
Learn how to structure controllers, use DTOs for validation, and properly handle request-response transformations in NestJS.
Learn how to manage dependencies in NestJS using Dependency Injection and the Inversion of Control principle.
Learn best practices for handling async operations in NestJS, avoiding nested promises, and writing maintainable asynchronous code.
Learn structured and maintainable error handling techniques in NestJS to improve code clarity and debugging.
Learn how to identify code smells, refactor step by step, and improve messy code in NestJS.
Learn how to enforce consistent coding style, use ESLint & Prettier, and follow TypeScript best practices for clean NestJS development.