How zeyadelbadawi/atlas-backend works
Atlas Backend is a NestJS API whose README identifies its current scope as Phase P0 foundation, not the business features suggested by many later-phase directories in the tree. Its principal workflow is API startup with validated configuration and shared request protections, followed by a health request that checks PostgreSQL and Redis. The graph focuses on those documented runtime responsibilities; the README describes Redis integration, but its implementation path is absent from the supplied tree, so no Redis adapter node is included.
Main entry points: main.ts Bootstrap · app.module.ts Root module · health.controller.ts Health endpoint · prisma.service.ts Prisma service
Components 14
API startup
- Bootstrap
src/main.ts - Root module
src/app.module.ts
Shared foundation
- Configuration
src/config/configuration.ts - Environment validation
src/config/env.validation.ts - Error filter
src/common/filters/all-exceptions.filter.ts - Request context
src/common/middleware/request-context.middleware.ts - Prisma service
src/database/prisma.service.ts
Health checks
- Health module
src/health/health.module.ts - Health endpoint
src/health/health.controller.ts - Postgres indicator
src/health/indicators/prisma-health.indicator.ts - Redis indicator
src/health/indicators/redis-health.indicator.ts
Other components
- API client
- PostgreSQL
- Redis
Connections 13
- Bootstrap → Root module: starts
- Bootstrap → Configuration: loads configuration
- Bootstrap → Environment validation: validates environment
- Bootstrap → Error filter: registers filter
- Bootstrap → Request context: registers middleware
- Root module → Health module: wires
- Root module → Prisma service: wires
- Prisma service → PostgreSQL: connects
- API client → Health endpoint: requests health
- Health endpoint → Postgres indicator: checks
- Health endpoint → Redis indicator: checks
- Postgres indicator → PostgreSQL: probes
- Redis indicator → Redis: probes