How galabavamsi/csl559_csd_group_project works
Dark Store Prototype is a FastAPI modular monolith for quick-commerce store operations, with a mobile client and browser demo. The principal workflow is location-based store selection, shopping and an atomic checkout hold, followed by payment, picking, packing and rider handoff; stock is restored on cancellation or timeout. Supply-side capabilities include forecasting, replenishment, inbound receiving and inventory counts, alongside farm and network-planning modules. The README documents these product flows; sampled backend source is limited, so unshown service interactions are omitted rather than inferred.
Main entry points: main.py FastAPI app · app.js Demo stations · fulfilment/service.py Fulfilment jobs · inventory/service.py Inventory authority
Components 23
Application entry
- Demo stations
web/app.js - FastAPI app
app/main.py - PostgreSQL / PostGIS
app/db.py
Customer commerce
- Store serviceability
app/modules/serviceability/service.py - Product catalogue
app/modules/catalogue/service.py - Orders and holds
app/modules/orders/service.py - Accounts
app/modules/accounts/service.py
Store fulfillment
- Inventory authority
app/modules/inventory/service.py - Fulfilment jobs
app/modules/fulfilment/service.py - Pick and pack
app/modules/pickpack/service.py - Rider handoff
app/modules/fulfilment/riders.py
Supply operations
- Inbound receiving
app/modules/inbound/service.py - Replenishment
app/modules/replenishment/service.py - Farm supply
app/modules/farms/service.py - Assortment
app/modules/assortment/service.py - Inventory counts
app/modules/inventory/counts.py
Planning and monitoring
- Demand forecasting
app/modules/forecasting/service.py - Network planning
app/modules/network_planning/service.py - Store slotting
app/modules/slotting/service.py - Ops dashboard
app/modules/dashboard/service.py - Store event feed
app/events.py - Monitoring and metrics
app/monitoring.py
Other components
- Customer and staff
Connections 32
- Customer and staff → Demo stations: uses stations
- Demo stations → FastAPI app: calls API
web/app.js - FastAPI app → Accounts: registers router
app/main.py - FastAPI app → Store serviceability: registers router
app/main.py - FastAPI app → Inventory authority: registers router
app/main.py - FastAPI app → Fulfilment jobs: registers router
app/main.py - FastAPI app → Pick and pack: registers router
app/main.py - FastAPI app → Inbound receiving: registers router
app/main.py - FastAPI app → Replenishment: registers router
app/main.py - FastAPI app → Demand forecasting: registers router
app/main.py - FastAPI app → Ops dashboard: registers router
app/main.py - FastAPI app → PostgreSQL / PostGIS: initializes database
app/main.py - Demo stations → Store serviceability: requests serving store
web/app.js - Demo stations → Product catalogue: loads availability
web/app.js - Demo stations → Orders and holds: requests reservation
web/app.js - Orders and holds → Fulfilment jobs: paid order creates job
app/modules/fulfilment/service.py - Fulfilment jobs → Pick and pack: creates pick tasks
app/modules/fulfilment/service.py - Pick and pack → Inventory authority: commits sale
app/modules/pickpack/service.py - Pick and pack → Fulfilment jobs: checks job state
app/modules/pickpack/service.py - Fulfilment jobs → Rider handoff: assigns rider
- Inbound receiving → Inventory authority: receives stock
- Replenishment → Demand forecasting: reads forecasts
app/modules/replenishment/service.py - Replenishment → Inventory authority: reads stock levels
app/modules/replenishment/service.py - Farm supply → Inbound receiving: supplies hubs
- Inventory counts → Inventory authority: corrects stock
- Customer and staff → Network planning: plans store locations
- Customer and staff → Ops dashboard: watches operations
- FastAPI app → Store event feed: starts event relay
app/main.py - Customer and staff → Store event feed: receives live feed
- FastAPI app → Monitoring and metrics: installs request observer
app/main.py - Customer and staff → Store slotting: optimizes picking
- Customer and staff → Assortment: manages assortment