How femiblaze/foodie-platform-engineering works
Foodie is both a demo food-delivery frontend and an AWS deployment example. The user workflow is login with a demo account, then browse restaurant menus; the documented delivery workflow builds an image, pushes it to ECR, updates ECS, and checks the live endpoint. Terraform provisions the runtime and supporting services. App behavior is grounded in the sampled JavaScript; infrastructure and deployment links are based on README descriptions because those source files were not sampled.
Main entry points: ecs.tf ECS service · pipeline.yml Build and deploy · main.js Demo login · alb.tf Application load balancer
Components 19
Foodie frontend
- Demo login
app/src/main.js - Restaurant menus
app/src/main.js - Static hosting
nginx.conf - Container image
Dockerfile
Image delivery
- Build and deploy
.github/workflows/pipeline.yml
AWS runtime
- ECR repository
infra/ecr.tf - ECS service
infra/ecs.tf - Service scaling
infra/autoscaling.tf - Application load balancer
infra/alb.tf - CloudWatch logs
infra/logging.tf - New Relic sidecar
infra/ecs.tf
Cloud foundation
- GitHub OIDC role
infra/oidc.tf - VPC and subnets
infra/vpc.tf - Network security
infra/security.tf - ECS IAM roles
infra/iam.tf - Terraform state
infra/backend.tf
Other components
- Foodie visitor
- Code push
- AWS account
Connections 24
- Foodie visitor → Demo login: opens app
README.md - Demo login → Restaurant menus: renders after login
app/src/main.js - Restaurant menus → Demo login: logs out to
app/src/main.js - Code push → Build and deploy: triggers
README.md - Build and deploy → GitHub OIDC role: assumes role
README.md - Build and deploy → Container image: builds image
README.md - Build and deploy → ECR repository: pushes image
README.md - Build and deploy → ECS service: updates task
README.md - Build and deploy → Application load balancer: smoke tests
README.md - Foodie visitor → Application load balancer: requests app
README.md - Application load balancer → ECS service: forwards traffic
README.md - ECS service → Static hosting: serves content
README.md - Static hosting → Demo login: delivers frontend
README.md - ECS service → Service scaling: scales tasks
README.md - ECS service → CloudWatch logs: writes logs
README.md - ECS service → New Relic sidecar: runs sidecar
README.md - AWS account → VPC and subnets: provisioned by
README.md - AWS account → Network security: provisioned by
README.md - AWS account → ECS IAM roles: provisioned by
README.md - AWS account → Application load balancer: provisioned by
README.md - AWS account → ECS service: provisioned by
README.md - AWS account → ECR repository: provisioned by
README.md - AWS account → CloudWatch logs: provisioned by
README.md - Terraform state → AWS account: stores state in
README.md