How joshuaonaiwu/foodie-app works
Foodie is a small restaurant-discovery demo wrapped in a documented AWS delivery and observability platform. Its user workflow is login with a demo account, then browse restaurant menus and delivery estimates, with logout returning to login. The README also describes automated image delivery to ECS, smoke and load testing, and New Relic alerting. App behavior is supported by the sampled JavaScript; platform relationships are documented in the README, while infrastructure and workflow implementation details were not sampled.
Main entry points: ci.yml GitHub Actions · ecs.tf ECS Fargate · main.js Demo login · infra Terraform infrastructure
Components 15
Foodie app
- Demo login
foodieapp/src/main.js - Restaurant catalog
foodieapp/src/main.js - App styles
foodieapp/src/styles.css
Delivery platform
- GitHub Actions
.github/workflows/ci.yml - Docker image
Dockerfile - Terraform infrastructure
infra - Smoke test
tests/smoke.sh - k6 load test
tests/load.js
AWS runtime
- ECR registry
infra/ecr.tf - Application Load Balancer
infra/alb.tf - ECS Fargate
infra/ecs.tf - NGINX static server
nginx.conf
Observability
- New Relic agent
infra/ecs.tf - NRQL alerts
infra
Other components
- Foodie user
Connections 16
- Foodie user → Demo login: signs in
foodieapp/src/main.js - Demo login → Restaurant catalog: opens on success
foodieapp/src/main.js - Restaurant catalog → Demo login: logs out to
foodieapp/src/main.js - Demo login → App styles: imports
foodieapp/src/main.js - GitHub Actions → Docker image: builds image
README.md - GitHub Actions → ECR registry: pushes image
README.md - GitHub Actions → Terraform infrastructure: runs apply
README.md - Terraform infrastructure → ECS Fargate: provisions
README.md - ECS Fargate → ECR registry: uses image
README.md - Application Load Balancer → ECS Fargate: routes traffic
README.md - ECS Fargate → NGINX static server: runs static serving
README.md - GitHub Actions → Smoke test: runs after deploy
README.md - GitHub Actions → k6 load test: runs load test
README.md - k6 load test → Application Load Balancer: generates traffic
README.md - ECS Fargate → New Relic agent: runs sidecar
README.md - New Relic agent → NRQL alerts: feeds signals
README.md