How iamtejasmane/aws-three-tier-web-app works
This repository is a hands-on AWS three-tier web app demo: a React transaction page calls a Node API that reads and mutates Aurora data. The README also documents the manually configured network, load balancers, security groups, health checks, and autoscaling. The runtime excerpts show the React routing and transaction API/database path; AWS infrastructure links are based on the README, not deployment code, and the /api proxy is documented but not implemented in the sampled sources.
Main entry points: App.js React app and routes · index.js Node API routes · web-tier Nginx and React web tier · TransactionService.js Transaction operations
Components 21
Web experience
- React app and routes
application-code/web-tier/src/App.js - Home page
application-code/web-tier/src/components/Home/Home.js - Transaction demo UI
application-code/web-tier/src/components/DatabaseDemo/DatabaseDemo.js - Navigation menu
application-code/web-tier/src/components/Menu/Menu.js - Menu styling
application-code/web-tier/src/components/Menu/Menu.styled.js - Menu toggle
application-code/web-tier/src/components/Burger/Burger.js - Toggle styling
application-code/web-tier/src/components/Burger/Burger.styled.js - Click-outside hook
application-code/web-tier/src/hooks.js - Global styles
application-code/web-tier/src/global.js - UI theme
application-code/web-tier/src/theme.js - Web vitals reporting
application-code/web-tier/src/reportWebVitals.js
Transaction API
- Node API routes
application-code/app-tier/index.js - Transaction operations
application-code/app-tier/TransactionService.js
Database
- Database credentials
application-code/app-tier/DbConfig.js - Aurora MySQL
AWS infrastructure
- Public load balancer
- Nginx and React web tier
application-code/web-tier - Internal load balancer
- VPC and security groups
- Health checks and scaling
Other components
- Web visitor
Connections 24
- Web visitor → Public load balancer: sends traffic
README.md - Public load balancer → Nginx and React web tier: forwards traffic
README.md - Nginx and React web tier → Internal load balancer: proxies API calls
README.md - Internal load balancer → Node API routes: forwards traffic
README.md - React app and routes → Transaction demo UI: routes /db
application-code/web-tier/src/App.js - React app and routes → Home page: routes /
application-code/web-tier/src/App.js - React app and routes → Navigation menu: renders
application-code/web-tier/src/App.js - React app and routes → Menu toggle: renders
application-code/web-tier/src/App.js - React app and routes → Click-outside hook: uses
application-code/web-tier/src/App.js - React app and routes → Global styles: applies
application-code/web-tier/src/App.js - React app and routes → UI theme: provides
application-code/web-tier/src/App.js - Menu toggle → Toggle styling: renders
application-code/web-tier/src/components/Burger/Burger.js - Navigation menu → Menu styling: renders
application-code/web-tier/src/components/Menu/Menu.js - Transaction demo UI → Node API routes: calls transaction API
application-code/web-tier/src/components/DatabaseDemo/DatabaseDemo.js - Node API routes → Transaction operations: dispatches operations
application-code/app-tier/index.js - Transaction operations → Database credentials: loads credentials
application-code/app-tier/TransactionService.js - Transaction operations → Aurora MySQL: queries transactions
application-code/app-tier/TransactionService.js - Nginx and React web tier → VPC and security groups: runs within
README.md - Node API routes → VPC and security groups: runs within
README.md - Aurora MySQL → VPC and security groups: runs within
README.md - Public load balancer → Health checks and scaling: uses health checks
README.md - Internal load balancer → Health checks and scaling: uses health checks
README.md - Nginx and React web tier → Health checks and scaling: uses autoscaling
README.md - Node API routes → Health checks and scaling: uses autoscaling
README.md