About This Architecture
Prometrica's AWS deployment architecture runs a React/Vite SPA frontend communicating via HTTPS/REST with a NestJS API server hosted on an EC2 or Lightsail Linux VPS in a public subnet. The Nginx reverse proxy terminates TLS and routes requests to the NestJS application, which uses Prisma ORM to query either a local PostgreSQL database on the VPS or Amazon RDS as a managed alternative. This single-VPS pattern with flexible database options suits small-to-medium workloads prioritizing simplicity and cost control over multi-AZ redundancy. Fork this diagram to customize subnet ranges, swap database backends, or add the optional S3 bucket for PDF reports and file uploads. The architecture demonstrates pragmatic AWS deployment for startups balancing operational overhead with managed service benefits.