avatarNikos Oikonomou

Summary

The web content provides guidance on best practices for developing production-grade applications using NestJS, emphasizing the importance of module structure for code organization and reuse, and adherence to the DRY principle.

Abstract

The section titled "NestJS - Best Practices" is part of a comprehensive guide on NestJS, which includes a prerequisite step of getting started with the framework. It suggests that developers should already have a working NestJS project to benefit from the upcoming best practices. The article advocates for organizing the codebase using a module structure to enhance code reuse and facilitate testing of feature modules, aligning with the DRY (Don't Repeat Yourself) principle. This approach is recommended to create well-structured, maintainable applications suitable for production environments.

Opinions

  • The author believes that adhering to the module structure is beneficial for maximizing code reuse and adhering to the DRY principle.
  • Organizing the codebase into modules is seen as a key practice for creating testable and maintainable NestJS applications.
  • The article implies that following these best practices is essential for developing applications that are ready for production use.

NestJS - Best Practices

In this section, I’ll showcase some of the best practices that I believe can help you create production-grade applications.

This section is part of a larger guide. You can follow it from the beginning or just complete the only prerequisite step (getting started).

At this point, you should have a fully operational NestJS project, in order to follow the upcoming steps.

I believe it’s a good practice to organize our code base using module structure, as this helps us to maximize code reuse (DRY principle) and test our feature modules.

Useful Links

Nodejs
Nestjs
Best Practices
Recommended from ReadMedium