Skip to content

Backend Architecture

The backend of Atlas ERP is a monolithic REST/GraphQL API built with NestJS 11. It is responsible for handling all business logic, database interactions, authentication, and background job processing.

Core Design Principles

  1. Modular Architecture: The application is divided into feature-specific modules (e.g., FinanceModule, HrModule, ProjectModule). This makes the codebase easier to navigate and allows teams to work independently.
  2. Dependency Injection: NestJS's robust DI container is used extensively to keep code testable and loosely coupled.
  3. Data Transfer Objects (DTOs): All incoming request bodies and query parameters are strictly validated using DTO classes decorated with class-validator.
  4. Prisma ORM: Database access is abstracted through Prisma, providing type-safe queries.

In this section