Prometrica - AWS Deployment (Linux VPS)
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.
People also ask
How do I deploy a full-stack Node.js application with React frontend on AWS EC2 or Lightsail with TLS termination and PostgreSQL?
Prometrica's architecture shows a React/Vite SPA communicating via HTTPS to an Nginx reverse proxy on an AWS EC2/Lightsail VPS in a public subnet. The Nginx proxy terminates TLS and forwards requests to a NestJS API server, which uses Prisma ORM to query PostgreSQL—either local to the VPS or managed via Amazon RDS. This pattern balances simplicity and cost for startups.
- Domain:
- Cloud Aws
- Audience:
- AWS solutions architects deploying full-stack Node.js applications on EC2/Lightsail
Generated by Diagrams.so — AI architecture diagram generator with native Draw.io output. Fork this diagram, remix it, or download as .drawio, PNG, or SVG.