How sounken/goodfood-cesi works
GoodFood is a proof-of-concept microservices platform. The visible runtime centers on HTTP service scaffolds: clients reach catalog, order, or delivery APIs, which expose service routes plus health, error handling, and observability. The README describes a broader ordering platform and REST/RabbitMQ architecture, but this tree contains only three service implementations and does not show a complete order-to-delivery workflow. The graph therefore distinguishes documented architecture from evidenced in-process wiring; several domain capabilities remain templates or are unsampled.
Main entry points: app.ts Fastify application · main.py FastAPI application · app.module.ts NestJS module · src TypeScript utilities
Components 22
Catalog service
- Fastify application
apps/catalog-service/src/app.ts - Restaurant routes
apps/catalog-service/src/routes/restaurants.ts - Error handler
apps/catalog-service/src/plugins/error-handler.ts - Metrics plugin
apps/catalog-service/src/plugins/metrics.ts - Service config
apps/catalog-service/src/config.ts
Order service
- NestJS module
apps/order-service/src/app.module.ts - HTTP setup
apps/order-service/src/app.setup.ts - Service config
apps/order-service/src/infrastructure/config/config.ts - Order controller
apps/order-service/src/interface/controllers/orders.controller.ts - Metrics endpoint
apps/order-service/src/interface/http/metrics.ts - HTTP error filter
apps/order-service/src/interface/http/http-exception.filter.ts
Delivery service
- FastAPI application
apps/delivery-service/app/main.py - Delivery routes
apps/delivery-service/app/interface/deliveries.py - Health routes
apps/delivery-service/app/interface/health.py - Correlation and metrics
apps/delivery-service/app/core/middleware.py - Error handlers
apps/delivery-service/app/core/errors.py - Service config
apps/delivery-service/app/core/config.py
Shared runtime
- TypeScript utilities
packages/common/src - Python utilities
packages/common-py/goodfood_common
Other components
- Web and mobile clients
- Other platform services
- PostgreSQL and RabbitMQ
Connections 25
- Web and mobile clients → Fastify application: HTTP requests
README.md - Web and mobile clients → NestJS module: HTTP requests
README.md - Web and mobile clients → FastAPI application: HTTP requests
README.md - Fastify application → Restaurant routes: registers routes
apps/catalog-service/src/app.ts - Fastify application → Error handler: registers handler
apps/catalog-service/src/app.ts - Fastify application → Metrics plugin: registers plugin
apps/catalog-service/src/app.ts - Fastify application → Service config: uses config
apps/catalog-service/src/app.ts - Fastify application → TypeScript utilities: uses logging
apps/catalog-service/src/app.ts - Error handler → TypeScript utilities: formats errors
apps/catalog-service/src/plugins/error-handler.ts - NestJS module → Order controller: registers controller
apps/order-service/src/app.module.ts - NestJS module → Metrics endpoint: uses metrics
apps/order-service/src/app.module.ts - NestJS module → Service config: loads config
apps/order-service/src/app.module.ts - HTTP setup → HTTP error filter: registers filter
apps/order-service/src/app.setup.ts - HTTP setup → Service config: uses config
apps/order-service/src/app.setup.ts - HTTP setup → TypeScript utilities: uses shared config
apps/order-service/src/app.setup.ts - HTTP error filter → TypeScript utilities: formats errors
apps/order-service/src/interface/http/http-exception.filter.ts - FastAPI application → Delivery routes: includes router
apps/delivery-service/app/main.py - FastAPI application → Health routes: includes router
apps/delivery-service/app/main.py - FastAPI application → Correlation and metrics: adds middleware
apps/delivery-service/app/main.py - FastAPI application → Error handlers: registers handlers
apps/delivery-service/app/main.py - FastAPI application → Service config: loads settings
apps/delivery-service/app/main.py - Correlation and metrics → Python utilities: uses correlation
apps/delivery-service/app/core/middleware.py - Error handlers → Python utilities: formats errors
apps/delivery-service/app/core/errors.py - Web and mobile clients → Other platform services: uses platform APIs
README.md - Other platform services → PostgreSQL and RabbitMQ: uses REST and events
README.md