Let's Build SomeThing Legendary together
A fully serverless expense app on AWS scales to thousands of users and costs under $1/month at low traffic.
I built this project to explore what a production-grade application looks like when you remove servers entirely. The app allows users to log, categorize, and review expenses through a fast Next.js frontend backed by AWS Lambda, API Gateway, DynamoDB, and Cognito.
The backend scales automatically from 0 to thousands of requests while costing almost nothing at idle making it ideal for indie developers and small teams.
Traditional backends (like Express on a VPS) run 24/7, costing $10–$15/month even with minimal usage. Add scaling, monitoring, and maintenance overhead, and the real cost increases quickly.
For an app handling only 50–100 requests per day, this is inefficient. I wanted to prove that a fully functional production app could run at near-zero cost while still handling real-world scale.
The entire backend is built using AWS managed services. API Gateway routes requests to Lambda functions, which handle business logic. DynamoDB stores data using a single-table schema optimized for fast queries, and Cognito manages authentication with JWT tokens.
The frontend is deployed on S3 and delivered globally through CloudFront, ensuring fast load times worldwide. This eliminates server maintenance while providing automatic scaling and high availability.
Users authenticate via Cognito and receive a JWT token. Each request includes this token, which is validated by API Gateway before reaching Lambda blocking unauthorized requests early.
Lambda functions process business logic and interact with DynamoDB, which returns results in under 10ms. Static assets are served from S3 and cached globally via CloudFront, delivering sub-100ms load times worldwide.