System Architecture
API Layer
- NestJS Framework
- JWT Authentication
- Rate Limiting
- Input Validation
Business Logic
- Service Layer
- Event-Driven
- Background Jobs
- Audit Logging
Data Layer
- PostgreSQL
- Prisma ORM
- Redis Cache
- BullMQ Queues
Security Features
JWT with refresh token rotation
Role-based access control (4 roles)
bcrypt password hashing
API rate limiting (100 req/min)
Comprehensive audit logging
Input validation on all endpoints
Technical Metrics
100+
TypeScript Files
20+
API Endpoints
28+
Test Cases
9
Feature Modules