# azeir/flight-booking-tracker architecture

> Architecture diagram of the GitHub repository azeir/flight-booking-tracker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-05-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/azeir/flight-booking-tracker
- Repository: https://github.com/azeir/flight-booking-tracker

## Overview

1. **Overall shape**
   - This is a classic MERN split into a **React frontend** and an **Express/MongoDB backend**.
   - The main architectural boundary is: **UI and client state live in `frontend/`**, while **API, auth, business rules, and persistence live in `backend/`**.

2. **Frontend subsystem**
   - The React app is organized by **pages** (`Login`, `Register`, `FlightCatalog`, `BookingRecords`, `Profile`, `SeatSelection`, `MockPayment`) plus reusable **components** (`Navbar`, booking cards, `SeatSelectionModal`).
   - `context/AuthContext.js` suggests app-wide authentication state is centralized there, likely controlling login status and user identity across pages.
   - `axiosConfig.jsx` is the main client-side API boundary, likely where the app sets the backend base URL and attaches auth headers.

3. **User-facing flows**
   - The UX is centered on **flight booking management**: users log in/register, browse flights, select seats, create or update bookings, and review booking records.
   - `MockPayment.jsx` implies payment is simulated in the UI rather than integrated with a real provider, so the booking flow is mostly internal to the app.
   - `bookingHelpers.js` suggests some client-side transformation or status logic around bookings before rendering.

4. **Backend API layer**
   - The backend is structured as **routes → controllers → facades/models**.
   - Routes are split by domain: `authRoutes.js`, `bookingRecordRoutes.js`, and `flightRoutes.js`.
   - Controllers (`authController`, `bookingRecordController`, `flightRoutesController`) handle request/response concerns, while facades encapsulate multi-step booking operations.

5. **Authentication and access control**
   - `authController.js`, `authMiddleware.js`, and the `User` model indicate JWT-style authenticated sessions or token-based authorization.
   - Protected routes likely depend on `authMiddleware` to verify the user before allowing booking or profile actions.
   - The README’s sample admin credentials and the presence of `userFactory.js` suggest there is a seeded/admin-oriented identity path for testing or bootstrapping.

6. **Booking domain logic**
   - Booking management is the core business subsystem, backed by `BookingRecords` and supported by `bookingCreateFacade.js` and `bookingUpdateFacade.js`.
   - The facades imply booking creation/update is not a single database write; it likely coordinates validation, seat assignment, and persistence updates.
   - `bookingFetchTemplate.js` and `baseController.js` suggest reusable query/response patterns for returning booking data consistently.

7. **Flight catalog / search subsystem**
   - `AviationDatas.js` and `flightRoutesController.js` indicate a separate data source for flight catalog or flight-search information apart from user bookings.
   - `FlightCatalog.jsx` on the frontend likely consumes these flight endpoints to display available flights before a booking is made.
   - The README’s note about flight number format validation (`QF123`) suggests the same validation rule is enforced on both client and server.

8. **Persistence layer**
   - MongoDB is the sole database layer, configured through `backend/config/db.js`.
   - There are three key collections/models: `User`, `BookingRecords`, and `AviationDatas`.
   - This separation implies the data model is split between identity, booking transactions, and flight reference/catalog data.

9. **Cross-cutting response and middleware**
   - `responseDecorator.js` indicates a standardized API response shape or error wrapping layer.
   - `baseController.js` likely provides shared controller behavior such as common success/error handling.
   - These shared pieces reduce duplication across auth, booking, and flight endpoints.

10. **Testing boundaries**
   - Backend tests cover the main business paths: `Authentication.test.js`, `Booking.test.js`, and `FlightSearch.test.js`.
   - The frontend has a basic `App.test.js`, so most meaningful verification is concentrated at the API/domain level.
   - This suggests the repository treats backend behavior as the primary source of correctness.

11. **Deployment and runtime**
   - The README shows deployment is operationally important: **AWS EC2 + PM2 + Nginx + GitHub Actions self-hosted runner**.
   - `.github/workflows/ci.yml` and `domain-update.yml` indicate automated build/deploy and post-deploy domain/config updates.
   - The system likely runs as a Node service behind Nginx on EC2, with PM2 keeping the backend process alive.

12. **How data moves through the system**
   - A typical request starts in the React UI, goes through `axiosConfig` to an Express route, hits middleware for auth/formatting, then a controller/facade, then MongoDB.
   - Results return through the same path and are rendered by page-level React components, often with auth state coming from `AuthContext`.
   - The clearest architecture diagram would show three domain pipelines: **authentication**, **flight search/catalog**, and **booking CRUD**.

Main entry points: [`frontend/src/App.js`](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/App.js) (App Shell), [`backend/routes/bookingRecordRoutes.js`](https://github.com/azeir/flight-booking-tracker/blob/main/backend/routes/bookingRecordRoutes.js) (Booking Routes), [`backend/routes/authRoutes.js`](https://github.com/azeir/flight-booking-tracker/blob/main/backend/routes/authRoutes.js) (Auth Routes), [`backend/controllers/bookingRecordController.js`](https://github.com/azeir/flight-booking-tracker/blob/main/backend/controllers/bookingRecordController.js) (Booking Controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend"]
  node_fe_app["App Shell<br/>react app<br/>[App.js]"]
  node_fe_auth(("Auth State<br/>react context<br/>[AuthContext.js]"))
  node_fe_api["API Client<br/>axios client<br/>[axiosConfig.jsx]"]
  node_fe_nav["Navbar<br/>ui component<br/>[Navbar.jsx]"]
  node_fe_login["Login<br/>page<br/>[Login.jsx]"]
  node_fe_register["Register<br/>page<br/>[Register.jsx]"]
  node_fe_catalog["Flight Catalog<br/>page<br/>[FlightCatalog.jsx]"]
  node_fe_seat["Seat Selection<br/>page<br/>[SeatSelection.jsx]"]
  node_fe_modal["Seat Modal<br/>ui modal"]
  node_fe_payment["Mock Payment<br/>page<br/>[MockPayment.jsx]"]
  node_fe_records["Booking Records<br/>page<br/>[BookingRecords.jsx]"]
  node_fe_profile["Profile<br/>page<br/>[Profile.jsx]"]
  node_fe_helpers["Booking Helpers<br/>client utils<br/>[bookingHelpers.js]"]
end

subgraph group_backend["Backend"]
  node_be_server["Server<br/>express app<br/>[server.js]"]
  node_be_routes_auth["Auth Routes<br/>express routes<br/>[authRoutes.js]"]
  node_be_routes_booking["Booking Routes<br/>express routes"]
  node_be_routes_flight["Flight Routes<br/>express routes<br/>[flightRoutes.js]"]
  node_be_auth["Auth Controller<br/>[authController.js]"]
  node_be_booking["Booking Controller"]
  node_be_flight["Flight Controller"]
  node_be_facade_create["Create Facade<br/>booking facade"]
  node_be_facade_update["Update Facade<br/>booking facade"]
  node_be_mw_auth["Auth Middleware<br/>express middleware<br/>[authMiddleware.js]"]
  node_be_mw_resp["Response Decorator<br/>middleware"]
  node_be_base["Base Controller<br/>shared controller<br/>[baseController.js]"]
  node_be_fetch["Fetch Template<br/>query template"]
  node_be_db[("Mongo DB<br/>database config<br/>[db.js]")]
  node_be_model_user[("User<br/>mongodb model<br/>[User.js]")]
  node_be_model_booking[("Booking Records<br/>mongodb model<br/>[BookingRecords.js]")]
  node_be_model_flight[("Aviation Data<br/>mongodb model<br/>[AviationDatas.js]")]
end

subgraph group_ops["Ops"]
  node_ops_ci["CI Workflow<br/>github actions<br/>[ci.yml]"]
  node_ops_deploy["Domain Update<br/>github actions<br/>[domain-update.yml]"]
  node_ops_readme["Deployment<br/>runtime notes<br/>[README.md]"]
end

node_fe_app -->|"renders"| node_fe_nav
node_fe_app -->|"routes"| node_fe_login
node_fe_app -->|"routes"| node_fe_register
node_fe_app -->|"routes"| node_fe_catalog
node_fe_app -->|"routes"| node_fe_seat
node_fe_app -->|"routes"| node_fe_records
node_fe_app -->|"routes"| node_fe_profile
node_fe_auth -->|"feeds"| node_fe_nav
node_fe_auth -->|"wraps"| node_fe_app
node_fe_api -->|"calls"| node_be_routes_auth
node_fe_api -->|"calls"| node_be_routes_booking
node_fe_api -->|"calls"| node_be_routes_flight
node_fe_login -->|"uses"| node_be_routes_auth
node_fe_register -->|"uses"| node_be_routes_auth
node_fe_catalog -->|"queries"| node_be_routes_flight
node_fe_seat -->|"opens"| node_fe_modal
node_fe_seat -->|"creates"| node_be_routes_booking
node_fe_payment -->|"confirms"| node_be_routes_booking
node_fe_records -->|"formats"| node_fe_helpers
node_fe_records -->|"loads"| node_be_routes_booking
node_fe_profile -->|"reads"| node_be_routes_auth
node_be_server -->|"mounts"| node_be_routes_auth
node_be_server -->|"mounts"| node_be_routes_booking
node_be_server -->|"mounts"| node_be_routes_flight
node_be_routes_auth -->|"dispatches"| node_be_auth
node_be_routes_booking -->|"protects"| node_be_mw_auth
node_be_routes_booking -->|"dispatches"| node_be_booking
node_be_routes_flight -->|"dispatches"| node_be_flight
node_be_auth -->|"uses"| node_be_model_user
node_be_auth -->|"formats"| node_be_mw_resp
node_be_booking -->|"creates"| node_be_facade_create
node_be_booking -->|"updates"| node_be_facade_update
node_be_booking -->|"reads"| node_be_fetch
node_be_booking -->|"extends"| node_be_base
node_be_flight -->|"reads"| node_be_model_flight
node_be_flight -->|"formats"| node_be_mw_resp
node_be_facade_create -->|"persists"| node_be_model_booking
node_be_facade_create -->|"checks"| node_be_model_flight
node_be_facade_update -->|"persists"| node_be_model_booking
node_be_facade_update -->|"checks"| node_be_model_flight
node_be_mw_auth -->|"verifies"| node_be_model_user
node_be_db -->|"connects"| node_be_model_user
node_be_db -->|"connects"| node_be_model_booking
node_be_db -->|"connects"| node_be_model_flight
node_ops_ci -->|"tests"| node_be_server
node_ops_ci -->|"tests"| node_fe_app
node_ops_deploy -->|"implements"| node_ops_readme
node_ops_deploy -->|"deploys"| node_be_server

click node_fe_app "https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/App.js"
click node_fe_auth "https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/context/AuthContext.js"
click node_fe_api "https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/axiosConfig.jsx"
click node_fe_nav "https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/components/Navbar.jsx"
click node_fe_login "https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/Login.jsx"
click node_fe_register "https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/Register.jsx"
click node_fe_catalog "https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/FlightCatalog.jsx"
click node_fe_seat "https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/SeatSelection.jsx"
click node_fe_modal "https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/components/SeatSelectionModal.jsx"
click node_fe_payment "https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/MockPayment.jsx"
click node_fe_records "https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/BookingRecords.jsx"
click node_fe_profile "https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/Profile.jsx"
click node_fe_helpers "https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/utils/bookingHelpers.js"
click node_be_server "https://github.com/azeir/flight-booking-tracker/blob/main/backend/server.js"
click node_be_routes_auth "https://github.com/azeir/flight-booking-tracker/blob/main/backend/routes/authRoutes.js"
click node_be_routes_booking "https://github.com/azeir/flight-booking-tracker/blob/main/backend/routes/bookingRecordRoutes.js"
click node_be_routes_flight "https://github.com/azeir/flight-booking-tracker/blob/main/backend/routes/flightRoutes.js"
click node_be_auth "https://github.com/azeir/flight-booking-tracker/blob/main/backend/controllers/authController.js"
click node_be_booking "https://github.com/azeir/flight-booking-tracker/blob/main/backend/controllers/bookingRecordController.js"
click node_be_flight "https://github.com/azeir/flight-booking-tracker/blob/main/backend/controllers/flightRoutesController.js"
click node_be_facade_create "https://github.com/azeir/flight-booking-tracker/blob/main/backend/facades/bookingCreateFacade.js"
click node_be_facade_update "https://github.com/azeir/flight-booking-tracker/blob/main/backend/facades/bookingUpdateFacade.js"
click node_be_mw_auth "https://github.com/azeir/flight-booking-tracker/blob/main/backend/middleware/authMiddleware.js"
click node_be_mw_resp "https://github.com/azeir/flight-booking-tracker/blob/main/backend/middleware/responseDecorator.js"
click node_be_base "https://github.com/azeir/flight-booking-tracker/blob/main/backend/controllers/baseController.js"
click node_be_fetch "https://github.com/azeir/flight-booking-tracker/blob/main/backend/controllers/bookingFetchTemplate.js"
click node_be_db "https://github.com/azeir/flight-booking-tracker/blob/main/backend/config/db.js"
click node_be_model_user "https://github.com/azeir/flight-booking-tracker/blob/main/backend/models/User.js"
click node_be_model_booking "https://github.com/azeir/flight-booking-tracker/blob/main/backend/models/BookingRecords.js"
click node_be_model_flight "https://github.com/azeir/flight-booking-tracker/blob/main/backend/models/AviationDatas.js"
click node_ops_ci "https://github.com/azeir/flight-booking-tracker/blob/main/.github/workflows/ci.yml"
click node_ops_deploy "https://github.com/azeir/flight-booking-tracker/blob/main/.github/workflows/domain-update.yml"
click node_ops_readme "https://github.com/azeir/flight-booking-tracker/blob/main/README.md"

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_fe_app,node_fe_auth,node_fe_api,node_fe_nav,node_fe_login,node_fe_register,node_fe_catalog,node_fe_seat,node_fe_modal,node_fe_payment,node_fe_records,node_fe_profile,node_fe_helpers toneBlue
class node_be_server,node_be_routes_auth,node_be_routes_booking,node_be_routes_flight,node_be_auth,node_be_booking,node_be_flight,node_be_facade_create,node_be_facade_update,node_be_mw_auth,node_be_mw_resp,node_be_base,node_be_fetch,node_be_db,node_be_model_user,node_be_model_booking,node_be_model_flight toneAmber
class node_ops_ci,node_ops_deploy,node_ops_readme toneMint
```

## Components

### Frontend

React UI, client state, and API access

- [App Shell](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/App.js): react app · Root React application and routing entry · `frontend/src/App.js`
- [Auth State](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/context/AuthContext.js): react context · Centralized login and user identity state · `frontend/src/context/AuthContext.js`
- [API Client](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/axiosConfig.jsx): axios client · Frontend HTTP boundary and auth header setup · `frontend/src/axiosConfig.jsx`
- [Navbar](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/components/Navbar.jsx): ui component · Top-level navigation and session-aware controls · `frontend/src/components/Navbar.jsx`
- [Login](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/Login.jsx): page · User sign-in screen · `frontend/src/pages/Login.jsx`
- [Register](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/Register.jsx): page · User registration screen · `frontend/src/pages/Register.jsx`
- [Flight Catalog](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/FlightCatalog.jsx): page · Browse and search available flights · `frontend/src/pages/FlightCatalog.jsx`
- [Seat Selection](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/SeatSelection.jsx): page · Seat choice and booking step · `frontend/src/pages/SeatSelection.jsx`
- [Seat Modal](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/components/SeatSelectionModal.jsx): ui modal · Seat selection dialog component · `frontend/src/components/SeatSelectionModal.jsx`
- [Mock Payment](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/MockPayment.jsx): page · Simulated payment step in booking flow · `frontend/src/pages/MockPayment.jsx`
- [Booking Records](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/BookingRecords.jsx): page · User booking history and management view · `frontend/src/pages/BookingRecords.jsx`
- [Profile](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/pages/Profile.jsx): page · User account and profile view · `frontend/src/pages/Profile.jsx`
- [Booking Helpers](https://github.com/azeir/flight-booking-tracker/blob/main/frontend/src/utils/bookingHelpers.js): client utils · Shared booking formatting and status logic · `frontend/src/utils/bookingHelpers.js`

### Backend

Express API, domain logic, and persistence

- [Server](https://github.com/azeir/flight-booking-tracker/blob/main/backend/server.js): express app · Node server bootstrap and route mounting · `backend/server.js`
- [Auth Routes](https://github.com/azeir/flight-booking-tracker/blob/main/backend/routes/authRoutes.js): express routes · Authentication endpoints · `backend/routes/authRoutes.js`
- [Booking Routes](https://github.com/azeir/flight-booking-tracker/blob/main/backend/routes/bookingRecordRoutes.js): express routes · Booking record endpoints · `backend/routes/bookingRecordRoutes.js`
- [Flight Routes](https://github.com/azeir/flight-booking-tracker/blob/main/backend/routes/flightRoutes.js): express routes · Flight catalog and search endpoints · `backend/routes/flightRoutes.js`
- [Auth Controller](https://github.com/azeir/flight-booking-tracker/blob/main/backend/controllers/authController.js): controller · Login and registration request handling · `backend/controllers/authController.js`
- [Booking Controller](https://github.com/azeir/flight-booking-tracker/blob/main/backend/controllers/bookingRecordController.js): controller · Booking record request handling · `backend/controllers/bookingRecordController.js`
- [Flight Controller](https://github.com/azeir/flight-booking-tracker/blob/main/backend/controllers/flightRoutesController.js): controller · Flight search and catalog request handling · `backend/controllers/flightRoutesController.js`
- [Create Facade](https://github.com/azeir/flight-booking-tracker/blob/main/backend/facades/bookingCreateFacade.js): booking facade · Multi-step booking creation workflow · `backend/facades/bookingCreateFacade.js`
- [Update Facade](https://github.com/azeir/flight-booking-tracker/blob/main/backend/facades/bookingUpdateFacade.js): booking facade · Multi-step booking update workflow · `backend/facades/bookingUpdateFacade.js`
- [Auth Middleware](https://github.com/azeir/flight-booking-tracker/blob/main/backend/middleware/authMiddleware.js): express middleware · Token verification and route protection · `backend/middleware/authMiddleware.js`
- [Response Decorator](https://github.com/azeir/flight-booking-tracker/blob/main/backend/middleware/responseDecorator.js): middleware · Standardized response and error wrapping · `backend/middleware/responseDecorator.js`
- [Base Controller](https://github.com/azeir/flight-booking-tracker/blob/main/backend/controllers/baseController.js): shared controller · Common controller behavior and response flow · `backend/controllers/baseController.js`
- [Fetch Template](https://github.com/azeir/flight-booking-tracker/blob/main/backend/controllers/bookingFetchTemplate.js): query template · Reusable booking fetch/query structure · `backend/controllers/bookingFetchTemplate.js`
- [Mongo DB](https://github.com/azeir/flight-booking-tracker/blob/main/backend/config/db.js): database config · MongoDB connection setup · `backend/config/db.js`
- [User](https://github.com/azeir/flight-booking-tracker/blob/main/backend/models/User.js): mongodb model · Identity and authentication data · `backend/models/User.js`
- [Booking Records](https://github.com/azeir/flight-booking-tracker/blob/main/backend/models/BookingRecords.js): mongodb model · Booking transaction records · `backend/models/BookingRecords.js`
- [Aviation Data](https://github.com/azeir/flight-booking-tracker/blob/main/backend/models/AviationDatas.js): mongodb model · Flight reference and catalog data · `backend/models/AviationDatas.js`

### Ops

Deployment and automation

- [CI Workflow](https://github.com/azeir/flight-booking-tracker/blob/main/.github/workflows/ci.yml): github actions · Build and test pipeline · `.github/workflows/ci.yml`
- [Domain Update](https://github.com/azeir/flight-booking-tracker/blob/main/.github/workflows/domain-update.yml): github actions · Post-deploy domain and config update workflow · `.github/workflows/domain-update.yml`
- [Deployment](https://github.com/azeir/flight-booking-tracker/blob/main/README.md): runtime notes · AWS EC2, PM2, Nginx, and self-hosted runner setup · `README.md`

## Connections

- App Shell → Navbar: renders · App shell includes shared navigation
- App Shell → Login: routes · App routes to login screen
- App Shell → Register: routes · App routes to registration screen
- App Shell → Flight Catalog: routes · App routes to flight browsing
- App Shell → Seat Selection: routes · App routes to seat selection
- App Shell → Booking Records: routes · App routes to booking history
- App Shell → Profile: routes · App routes to profile screen
- Auth State → Navbar: feeds · Auth state drives navigation UI
- Auth State → App Shell: wraps · App is wrapped by auth provider
- API Client → Auth Routes: calls · Client hits auth endpoints
- API Client → Booking Routes: calls · Client hits booking endpoints
- API Client → Flight Routes: calls · Client hits flight endpoints
- Login → Auth Routes: uses · Login submits credentials to backend
- Register → Auth Routes: uses · Registration submits user data to backend
- Flight Catalog → Flight Routes: queries · Flight catalog consumes search API
- Seat Selection → Seat Modal: opens · Seat page uses modal for seat choice
- Seat Selection → Booking Routes: creates · Seat selection leads to booking creation
- Mock Payment → Booking Routes: confirms · Mock payment continues booking flow
- Booking Records → Booking Helpers: formats · Booking page uses shared client booking logic
- Booking Records → Booking Routes: loads · Booking history is fetched from backend
- Profile → Auth Routes: reads · Profile relies on authenticated user data
- Server → Auth Routes: mounts · Server mounts auth routes
- Server → Booking Routes: mounts · Server mounts booking routes
- Server → Flight Routes: mounts · Server mounts flight routes
- Auth Routes → Auth Controller: dispatches · Auth route handlers forward to controller
- Booking Routes → Auth Middleware: protects · Booking routes require auth middleware
- Booking Routes → Booking Controller: dispatches · Booking route handlers forward to controller
- Flight Routes → Flight Controller: dispatches · Flight route handlers forward to controller
- Auth Controller → User: uses · Auth reads and writes user records
- Auth Controller → Response Decorator: formats · Auth responses use shared wrapper
- Booking Controller → Create Facade: creates · Booking creation delegates to facade
- Booking Controller → Update Facade: updates · Booking updates delegate to facade
- Booking Controller → Fetch Template: reads · Booking retrieval uses fetch template
- Booking Controller → Base Controller: extends · Booking controller shares base behavior
- Flight Controller → Aviation Data: reads · Flight API queries aviation data
- Flight Controller → Response Decorator: formats · Flight responses use shared wrapper
- Create Facade → Booking Records: persists · Create flow writes booking records
- Create Facade → Aviation Data: checks · Create flow validates flight data and seats
- Update Facade → Booking Records: persists · Update flow modifies booking records
- Update Facade → Aviation Data: checks · Update flow validates seat availability
- Auth Middleware → User: verifies · Auth middleware resolves user identity
- Mongo DB → User: connects · Mongo connection backs user model
- Mongo DB → Booking Records: connects · Mongo connection backs booking model
- Mongo DB → Aviation Data: connects · Mongo connection backs flight model
- CI Workflow → Server: tests · CI exercises backend build and tests
- CI Workflow → App Shell: tests · CI exercises frontend build and tests
- Domain Update → Deployment: implements · Workflow supports documented deployment flow
- Domain Update → Server: deploys · Automation updates production service
