Smoke Tracker Cloud Dashboard
A production-style AWS deployment case study for an optional cloud dashboard companion to a mobile smoke tracking app.
Built with React, TypeScript, Node.js, MySQL, Terraform, GitHub Actions, ECS Fargate, RDS, S3, CloudFront, Secrets Manager, and CloudWatch.
This dashboard is currently a standalone case study and is not integrated with the Smoke Tracker mobile app.
Product Scope
The dashboard is an opt-in cloud companion for users who want to sync Smoke Tracker data, view long-term analytics, export history, and track reduction or limit goals across devices.
Tech Stack
Frontend: React, TypeScript, Vite, TanStack Query, React Router, Recharts
Backend: Node.js, TypeScript, Fastify, Prisma, Zod
Database: MySQL 8.4+ on Amazon RDS
Auth: JWT access tokens with refresh token rotation
Runtime: Docker, ECS Fargate, Application Load Balancer
Frontend hosting: S3 and CloudFront
Infrastructure: Terraform
CI/CD: GitHub Actions
Secrets and logs: AWS Secrets Manager and CloudWatch
Repository Layout
Local Development
The API runs on
http://localhost:4000 and the web app runs on http://localhost:5173.Seeded demo login:
API Surface
POST /v1/auth/registerPOST /v1/auth/loginPOST /v1/auth/refreshPOST /v1/auth/logoutGET /v1/meDELETE /v1/meGET|POST|PATCH|DELETE /v1/smoke-itemsGET|POST|PATCH|DELETE /v1/smoke-logsGET|POST|PATCH|DELETE /v1/goalsGET /v1/analytics/summaryGET /v1/analytics/daily-statsGET /v1/analytics/daily-target-progressPOST /v1/exportsGET /v1/exportsGET /v1/exports/:id/download-urlGET /healthGET /readyAWS Case Study
See the
docs/ directory for the production architecture, deployment flow, security notes, cost notes, and production-readiness checklist.Note
The repository includes three Terraform environment configurations:
production-reference: A secure, enterprise-grade architecture with ECS tasks running in private subnets, using private VPC interface endpoints for AWS services.live-demo: A cost-optimized setup that runs ECS tasks on Fargate Spot in public subnets with public IPs. It bypasses expensive VPC interface endpoints to reduce idle AWS costs by ~77% while maintaining security via load balancer security group rules.serverless-demo: An ultra-low-cost setup running Fastify on AWS Lambda and API Gateway (HTTP API), completely eliminating Fargate and ALB idle baseline costs for an additional ~87% cost reduction. Database remains securely in private subnets.0 likes · 1 view · Aug 18, 2026
Developed AWS-deployed cloud dashboard for a mobile smoke tracking app.