# goat82447-ops/enterprise-lunchbox-lms-prod architecture

> Architecture diagram of the GitHub repository goat82447-ops/enterprise-lunchbox-lms-prod, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/goat82447-ops/enterprise-lunchbox-lms-prod
- Repository: https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod

## Overview

This repository combines a RouteX mobility and delivery frontend with backend services, including a .NET parcel-booking API and a JavaScript microservices stack. The main user journey is routed through the Angular app: sign in, create or manage a ride/booking, then follow its status and complete payment or handoff. Separate feature areas cover captain operations, administration, food ordering, and app-wide language and notifications. The excerpts establish frontend-to-HTTP calls and .NET endpoint-to-database calls; they do not establish how the gateway routes requests to individual services, so those links are omitted or marked unverified.

Main entry points: [`Frontend/lunchbox-app/src/app/core/services/booking.service.ts`](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/core/services/booking.service.ts) (Booking client), [`Frontend/lunchbox-app/src/app/app.routes.ts`](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/app.routes.ts) (Route registry), [`Frontend/lunchbox-app/src/app/core/services/auth.service.ts`](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/core/services/auth.service.ts) (Auth client), [`Frontend/lunchbox-app/src/app/app.ts`](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/app.ts) (App shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Angular app"]
  node_routes["Route registry<br/>[app.routes.ts]"]
  node_shell["App shell<br/>[app.ts]"]
  node_models["Delivery models<br/>[delivery.models.ts]"]
  node_environment["API settings<br/>[environment.ts]"]
  node_auth_ui["Authentication UI<br/>[login.component.ts]"]
end

subgraph group_mobility["Ride workflow"]
  node_auth_client["Auth client<br/>[auth.service.ts]"]
  node_booking_ui["Booking UI"]
  node_booking_client["Booking client<br/>[booking.service.ts]"]
  node_travel["Travel booking"]
  node_live_ride["Live ride"]
  node_tracking_ui["Tracking UI"]
  node_payment_ui["Payment UI"]
end

subgraph group_operations["Platform operations"]
  node_account["Account management"]
  node_captain_profile["Captain profile"]
  node_admin_ui["Admin console<br/>[admin.component.ts]"]
  node_notifications["Notifications"]
  node_language["Language settings"]
  node_food_order["Food ordering"]
end

subgraph group_backend["Backend services"]
  node_gateway["API gateway<br/>[index.js]"]
  node_micro_auth["Auth service<br/>[index.js]"]
  node_auth_models["Auth data models<br/>[models.js]"]
  node_order_service["Order service<br/>[index.js]"]
  node_parcel_api["Parcel API<br/>[Program.cs]"]
  node_parcel_store[("Parcel database access<br/>[ParcelDbContext.cs]")]
  node_parcel_booking["Parcel booking entity<br/>[ParcelBooking.cs]"]
  node_auth_api["Auth API<br/>[Program.cs]"]
  node_auth_store[("Auth database access<br/>[AuthDbContext.cs]")]
end

node_user(("App user"))

node_user -->|"opens routes"| node_routes
node_routes -->|"routes to"| node_auth_ui
node_routes -->|"routes to"| node_booking_ui
node_routes -->|"routes to"| node_travel
node_routes -->|"routes to"| node_live_ride
node_routes -->|"routes to"| node_tracking_ui
node_routes -->|"routes to"| node_payment_ui
node_shell -->|"observes session"| node_auth_client
node_shell -->|"observes alerts"| node_notifications
node_shell -->|"observes language"| node_language
node_auth_ui -.->|"submits credentials"| node_auth_client
node_auth_client -->|"reads API base"| node_environment
node_auth_client -->|"uses types"| node_models
node_booking_ui -->|"uses booking API"| node_booking_client
node_booking_client -->|"uses types"| node_models
node_booking_client -->|"reads session"| node_auth_client
node_booking_client -->|"pushes updates"| node_notifications
node_booking_client -->|"reads API base"| node_environment
node_payment_ui -.->|"updates payment"| node_booking_client
node_tracking_ui -.->|"reads tracking"| node_booking_client
node_gateway -.->|"dispatches requests"| node_micro_auth
node_gateway -.->|"dispatches requests"| node_order_service
node_micro_auth -->|"uses models"| node_auth_models
node_booking_client -.->|"sends HTTP requests"| node_gateway
node_parcel_api -->|"reads and writes"| node_parcel_store
node_parcel_store -->|"stores entities"| node_parcel_booking
node_auth_api -->|"reads and writes"| node_auth_store

click node_routes "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/app.routes.ts"
click node_shell "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/app.ts"
click node_models "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/core/models/delivery.models.ts"
click node_environment "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/environments/environment.ts"
click node_auth_ui "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/login/login.component.ts"
click node_auth_client "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/core/services/auth.service.ts"
click node_booking_ui "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/booking/booking.component.ts"
click node_booking_client "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/core/services/booking.service.ts"
click node_travel "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/travel/travel.component.ts"
click node_live_ride "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/ride-live/ride-live.component.ts"
click node_tracking_ui "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/tracking/tracking.component.ts"
click node_payment_ui "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/payment/payment.component.ts"
click node_account "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/account/account.component.ts"
click node_captain_profile "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/captain-profile/captain-profile.component.ts"
click node_admin_ui "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/admin/admin.component.ts"
click node_notifications "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/core/services/notification.service.ts"
click node_language "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/core/services/language.service.ts"
click node_food_order "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/food/food-cart.component.ts"
click node_gateway "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/microservices/services/api-gateway/src/index.js"
click node_micro_auth "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/microservices/services/auth-service/src/index.js"
click node_auth_models "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/microservices/services/auth-service/src/models.js"
click node_order_service "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/microservices/services/order-service/src/index.js"
click node_parcel_api "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/dotnet/ParcelService/Program.cs"
click node_parcel_store "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/dotnet/ParcelService/Data/ParcelDbContext.cs"
click node_parcel_booking "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/dotnet/ParcelService/Models/ParcelBooking.cs"
click node_auth_api "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/dotnet/AuthService/Program.cs"
click node_auth_store "https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/dotnet/AuthService/Data/AuthDbContext.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_routes,node_shell,node_models,node_environment,node_auth_ui,node_user toneBlue
class node_auth_client,node_booking_ui,node_booking_client,node_travel,node_live_ride,node_tracking_ui,node_payment_ui toneAmber
class node_account,node_captain_profile,node_admin_ui,node_notifications,node_language,node_food_order toneMint
class node_gateway,node_micro_auth,node_auth_models,node_order_service,node_parcel_api,node_parcel_store,node_parcel_booking,node_auth_api,node_auth_store toneRose
```

## Components

### Angular app

- [Route registry](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/app.routes.ts): `Frontend/lunchbox-app/src/app/app.routes.ts`
- [App shell](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/app.ts): `Frontend/lunchbox-app/src/app/app.ts`
- [Delivery models](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/core/models/delivery.models.ts): `Frontend/lunchbox-app/src/app/core/models/delivery.models.ts`
- [API settings](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/environments/environment.ts): `Frontend/lunchbox-app/src/environments/environment.ts`
- [Authentication UI](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/login/login.component.ts): `Frontend/lunchbox-app/src/app/features/login/login.component.ts`

### Ride workflow

- [Auth client](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/core/services/auth.service.ts): `Frontend/lunchbox-app/src/app/core/services/auth.service.ts`
- [Booking UI](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/booking/booking.component.ts): `Frontend/lunchbox-app/src/app/features/booking/booking.component.ts`
- [Booking client](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/core/services/booking.service.ts): `Frontend/lunchbox-app/src/app/core/services/booking.service.ts`
- [Travel booking](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/travel/travel.component.ts): `Frontend/lunchbox-app/src/app/features/travel/travel.component.ts`
- [Live ride](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/ride-live/ride-live.component.ts): `Frontend/lunchbox-app/src/app/features/ride-live/ride-live.component.ts`
- [Tracking UI](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/tracking/tracking.component.ts): `Frontend/lunchbox-app/src/app/features/tracking/tracking.component.ts`
- [Payment UI](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/payment/payment.component.ts): `Frontend/lunchbox-app/src/app/features/payment/payment.component.ts`

### Platform operations

- [Account management](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/account/account.component.ts): `Frontend/lunchbox-app/src/app/features/account/account.component.ts`
- [Captain profile](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/captain-profile/captain-profile.component.ts): `Frontend/lunchbox-app/src/app/features/captain-profile/captain-profile.component.ts`
- [Admin console](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/admin/admin.component.ts): `Frontend/lunchbox-app/src/app/features/admin/admin.component.ts`
- [Notifications](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/core/services/notification.service.ts): `Frontend/lunchbox-app/src/app/core/services/notification.service.ts`
- [Language settings](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/core/services/language.service.ts): `Frontend/lunchbox-app/src/app/core/services/language.service.ts`
- [Food ordering](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Frontend/lunchbox-app/src/app/features/food/food-cart.component.ts): `Frontend/lunchbox-app/src/app/features/food/food-cart.component.ts`

### Backend services

- [API gateway](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/microservices/services/api-gateway/src/index.js): `Backend/microservices/services/api-gateway/src/index.js`
- [Auth service](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/microservices/services/auth-service/src/index.js): `Backend/microservices/services/auth-service/src/index.js`
- [Auth data models](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/microservices/services/auth-service/src/models.js): `Backend/microservices/services/auth-service/src/models.js`
- [Order service](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/microservices/services/order-service/src/index.js): `Backend/microservices/services/order-service/src/index.js`
- [Parcel API](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/dotnet/ParcelService/Program.cs): `Backend/dotnet/ParcelService/Program.cs`
- [Parcel database access](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/dotnet/ParcelService/Data/ParcelDbContext.cs): `Backend/dotnet/ParcelService/Data/ParcelDbContext.cs`
- [Parcel booking entity](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/dotnet/ParcelService/Models/ParcelBooking.cs): `Backend/dotnet/ParcelService/Models/ParcelBooking.cs`
- [Auth API](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/dotnet/AuthService/Program.cs): `Backend/dotnet/AuthService/Program.cs`
- [Auth database access](https://github.com/goat82447-ops/enterprise-lunchbox-lms-prod/blob/main/Backend/dotnet/AuthService/Data/AuthDbContext.cs): `Backend/dotnet/AuthService/Data/AuthDbContext.cs`

### Other components

- **App user**

## Connections

- App user → Route registry: opens routes (evidence: `Frontend/lunchbox-app/src/app/app.routes.ts`)
- Route registry → Authentication UI: routes to (evidence: `Frontend/lunchbox-app/src/app/app.routes.ts`)
- Route registry → Booking UI: routes to (evidence: `Frontend/lunchbox-app/src/app/app.routes.ts`)
- Route registry → Travel booking: routes to (evidence: `Frontend/lunchbox-app/src/app/app.routes.ts`)
- Route registry → Live ride: routes to (evidence: `Frontend/lunchbox-app/src/app/app.routes.ts`)
- Route registry → Tracking UI: routes to (evidence: `Frontend/lunchbox-app/src/app/app.routes.ts`)
- Route registry → Payment UI: routes to (evidence: `Frontend/lunchbox-app/src/app/app.routes.ts`)
- App shell → Auth client: observes session (evidence: `Frontend/lunchbox-app/src/app/app.ts`)
- App shell → Notifications: observes alerts (evidence: `Frontend/lunchbox-app/src/app/app.ts`)
- App shell → Language settings: observes language (evidence: `Frontend/lunchbox-app/src/app/app.ts`)
- Authentication UI → Auth client: submits credentials
- Auth client → API settings: reads API base (evidence: `Frontend/lunchbox-app/src/app/core/services/auth.service.ts`)
- Auth client → Delivery models: uses types (evidence: `Frontend/lunchbox-app/src/app/core/services/auth.service.ts`)
- Booking UI → Booking client: uses booking API (evidence: `Frontend/lunchbox-app/src/app/features/booking/booking.component.ts`)
- Booking client → Delivery models: uses types (evidence: `Frontend/lunchbox-app/src/app/core/services/booking.service.ts`)
- Booking client → Auth client: reads session (evidence: `Frontend/lunchbox-app/src/app/core/services/booking.service.ts`)
- Booking client → Notifications: pushes updates (evidence: `Frontend/lunchbox-app/src/app/core/services/booking.service.ts`)
- Booking client → API settings: reads API base (evidence: `Frontend/lunchbox-app/src/app/core/services/booking.service.ts`)
- Payment UI → Booking client: updates payment
- Tracking UI → Booking client: reads tracking (evidence: `Frontend/lunchbox-app/src/app/features/tracking/tracking.component.ts`)
- API gateway → Auth service: dispatches requests
- API gateway → Order service: dispatches requests
- Auth service → Auth data models: uses models (evidence: `Backend/microservices/services/auth-service/src/index.js`)
- Booking client → API gateway: sends HTTP requests
- Parcel API → Parcel database access: reads and writes (evidence: `Backend/dotnet/ParcelService/Program.cs`)
- Parcel database access → Parcel booking entity: stores entities (evidence: `Backend/dotnet/ParcelService/Data/ParcelDbContext.cs`)
- Auth API → Auth database access: reads and writes (evidence: `Backend/dotnet/AuthService/Program.cs`)
