davide-balducci/nestjs-rules icon
public
Published on 3/12/2025
davide-balducci/nestjs-rules

Rules
  • Follow NestJS's modular architecture to ensure scalability and maintainability.
  • Use DTOs (Data Transfer Objects) to validate and type API requests.
  • Implement Dependency Injection for better service management.
  • Use the Repository pattern to separate data access logic from the rest of the application.
  • Ensure that all REST APIs are well-documented with Swagger.
  • Implement caching strategies to reduce database load.
  • Suggest optimizations to improve PostgreSQL query performance.