How aws-samples/aws-three-tier-web-architecture-workshop works
This repository is a workshop demo of a three-tier AWS web application. A browser user visits the React web tier; its home page presents the architecture, while the database demo sends transaction requests through the documented Nginx/API path to the Node.js service and Aurora MySQL. The app exposes transaction CRUD and a health check; the service performs SQL operations using configured database credentials. The README documents load balancers, EC2 tiers, health checks, and autoscaling, but their AWS provisioning is outside the provided application source. Links between those infrastructure components therefore cite the README.
Main entry points: App.js React app and routes · nginx.conf Nginx web servers · TransactionService.js Transaction service · DatabaseDemo.js Transaction demo
Components 17
Web tier
- Nginx web servers
application-code/nginx.conf - React app and routes
application-code/web-tier/src/App.js - Architecture home
application-code/web-tier/src/components/Home/Home.js - Transaction demo
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
Application tier
- Express API routes
application-code/app-tier/index.js - Transaction service
application-code/app-tier/TransactionService.js - Database credentials
application-code/app-tier/DbConfig.js
Database tier
- Aurora MySQL
AWS infrastructure
- Public load balancer
- Internal load balancer
- Web-tier EC2
- App-tier EC2
Other components
- Browser user
Connections 17
- Browser user → Public load balancer: requests pages
README.md - Public load balancer → Web-tier EC2: forwards traffic
README.md - Web-tier EC2 → Nginx web servers: hosts
README.md - Nginx web servers → React app and routes: serves site
README.md - React app and routes → Architecture home: routes to
application-code/web-tier/src/App.js - React app and routes → Transaction demo: routes to
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 - Navigation menu → Menu styling: uses styles
application-code/web-tier/src/components/Menu/Menu.js - Menu toggle → Toggle styling: uses styles
application-code/web-tier/src/components/Burger/Burger.js - Transaction demo → Nginx web servers: requests /api
application-code/web-tier/src/components/DatabaseDemo/DatabaseDemo.js - Nginx web servers → Internal load balancer: redirects API calls
README.md - Internal load balancer → App-tier EC2: forwards traffic
README.md - App-tier EC2 → Express API routes: hosts
README.md - Express API routes → Transaction service: calls
application-code/app-tier/index.js - Transaction service → Database credentials: loads credentials
application-code/app-tier/TransactionService.js - Transaction service → Aurora MySQL: queries transactions
README.md