# abdelrahmanahmad99/asiaporeair-workspace architecture

> Architecture diagram of the GitHub repository abdelrahmanahmad99/asiaporeair-workspace, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abdelrahmanahmad99/asiaporeair-workspace
- Repository: https://github.com/abdelrahmanahmad99/asiaporeair-workspace

## Overview

AsiaporeairWorkspace contains two Angular products: a customer airline portal and an airport/airline management system, with shared API services and models. The customer journey spans flight search, booking, check-in, and trip management; the management product covers fleet, flight operations, workforce, network, and commercial revenue. The graph preserves these major feature areas, plus authentication and shared service layers. Source excerpts show routing and selected service calls, but not most feature internals; those areas are represented at their supported route or directory level rather than inferred call chains.

Main entry points: [`projects/customer-portal/src/app/app.routes.ts`](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/app.routes.ts) (Portal routing), [`projects/airport-management/src/app/app.routes.ts`](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/airport-management/src/app/app.routes.ts) (Management routing), [`projects/shared-core/src/shared/services/management-system/routes.service.ts`](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/shared-core/src/shared/services/management-system/routes.service.ts) (Route management API), [`projects/customer-portal/src/app/features/authentication/services/auth.service.ts`](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/authentication/services/auth.service.ts) (Portal authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Customer portal"]
  node_portal_app["Portal routing<br/>[app.routes.ts]"]
  node_flight_search["Flight search"]
  node_flight_area["Flight information"]
  node_booking_area["Booking<br/>[booking.routes.ts]"]
  node_manage_booking["Manage trips"]
  node_checkin_area["Check-in<br/>[check-in.routes.ts]"]
  node_loyalty_area["Loyalty<br/>[loyalty.routes.ts]"]
  node_journey_area["Travel information"]
end

subgraph group_management["Airport management"]
  node_admin_app["Management routing<br/>[app.routes.ts]"]
  node_ops_center["Operations center"]
  node_flight_ops["Flight operations"]
  node_fleet["Fleet configuration"]
  node_network["Network infrastructure"]
  node_workforce["Workforce intelligence"]
  node_fare_routes["Fare engine routes"]
  node_fare_store["Fare engine state"]
end

subgraph group_shared["Shared services"]
  node_shared_auth["Shared authentication API<br/>[auth.service.ts]"]
  node_shared_routes["Route management API<br/>[routes.service.ts]"]
  node_route_models["Route data models<br/>[routes.model.ts]"]
end

subgraph group_identity["Identity and access"]
  node_portal_auth["Portal authentication<br/>[auth.service.ts]"]
  node_portal_auth_state["Portal session state"]
  node_portal_token["Portal token storage<br/>[storage.service.ts]"]
end

node_traveler(("Traveler"))
node_api_backend{{"Airline API"}}

node_traveler -->|"opens portal"| node_portal_app
node_portal_app -->|"routes to"| node_flight_area
node_portal_app -->|"routes to"| node_booking_area
node_portal_app -->|"routes to"| node_manage_booking
node_portal_app -->|"routes to"| node_checkin_area
node_portal_app -->|"routes to"| node_loyalty_area
node_portal_app -->|"routes to"| node_journey_area
node_flight_search -->|"renders within"| node_flight_area
node_portal_app -->|"routes to"| node_portal_auth
node_portal_auth -->|"stores tokens"| node_portal_token
node_portal_auth_state -->|"reads tokens"| node_portal_token
node_admin_app -->|"loads operations"| node_ops_center
node_admin_app -->|"routes to"| node_flight_ops
node_admin_app -->|"routes to"| node_fleet
node_admin_app -->|"routes to"| node_network
node_admin_app -->|"routes to"| node_workforce
node_fare_routes -.->|"uses state"| node_fare_store
node_shared_auth -->|"sends HTTP"| node_api_backend
node_shared_routes -->|"sends HTTP"| node_api_backend
node_shared_routes -->|"uses models"| node_route_models

click node_portal_app "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/app.routes.ts"
click node_flight_search "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/flight-info/flight-search/components/flight-search-engine/flight-search-engine.component.ts"
click node_flight_area "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/flight-info/flight-info.routes.ts"
click node_booking_area "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/booking/booking.routes.ts"
click node_manage_booking "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/manage-booking/manage-booking.routes.ts"
click node_checkin_area "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/check-in/check-in.routes.ts"
click node_loyalty_area "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/loyalty/loyalty.routes.ts"
click node_journey_area "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/journey-with-us/journey-with-us.routes.ts"
click node_portal_auth "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/authentication/services/auth.service.ts"
click node_portal_auth_state "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/core/auth/auth-state.service.ts"
click node_portal_token "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/core/storage/storage.service.ts"
click node_admin_app "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/airport-management/src/app/app.routes.ts"
click node_ops_center "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/tree/main/projects/airport-management/src/app/features/operations-center"
click node_flight_ops "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/tree/main/projects/airport-management/src/app/features/flight-operations"
click node_fleet "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/tree/main/projects/airport-management/src/app/features/fleet-configuration"
click node_network "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/tree/main/projects/airport-management/src/app/features/network-infrastructure"
click node_workforce "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/tree/main/projects/airport-management/src/app/features/workforce-intelligence"
click node_fare_routes "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/airport-management/src/app/features/commercial-revenue/fare-engine/fare-engine.routes.ts"
click node_fare_store "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/airport-management/src/app/features/commercial-revenue/fare-engine/store/fare-engine.store.ts"
click node_shared_auth "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/shared-core/src/shared/services/authentication/auth.service.ts"
click node_shared_routes "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/shared-core/src/shared/services/management-system/routes.service.ts"
click node_route_models "https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/shared-core/src/shared/models/routes.model.ts"

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_portal_app,node_flight_search,node_flight_area,node_booking_area,node_manage_booking,node_checkin_area,node_loyalty_area,node_journey_area toneBlue
class node_admin_app,node_ops_center,node_flight_ops,node_fleet,node_network,node_workforce,node_fare_routes,node_fare_store toneAmber
class node_shared_auth,node_shared_routes,node_route_models,node_api_backend toneMint
class node_portal_auth,node_portal_auth_state,node_portal_token toneRose
class node_traveler toneIndigo
```

## Components

### Customer portal

- [Portal routing](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/app.routes.ts): `projects/customer-portal/src/app/app.routes.ts`
- [Flight search](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/flight-info/flight-search/components/flight-search-engine/flight-search-engine.component.ts): `projects/customer-portal/src/app/features/flight-info/flight-search/components/flight-search-engine/flight-search-engine.component.ts`
- [Flight information](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/flight-info/flight-info.routes.ts): `projects/customer-portal/src/app/features/flight-info/flight-info.routes.ts`
- [Booking](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/booking/booking.routes.ts): `projects/customer-portal/src/app/features/booking/booking.routes.ts`
- [Manage trips](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/manage-booking/manage-booking.routes.ts): `projects/customer-portal/src/app/features/manage-booking/manage-booking.routes.ts`
- [Check-in](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/check-in/check-in.routes.ts): `projects/customer-portal/src/app/features/check-in/check-in.routes.ts`
- [Loyalty](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/loyalty/loyalty.routes.ts): `projects/customer-portal/src/app/features/loyalty/loyalty.routes.ts`
- [Travel information](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/journey-with-us/journey-with-us.routes.ts): `projects/customer-portal/src/app/features/journey-with-us/journey-with-us.routes.ts`

### Airport management

- [Management routing](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/airport-management/src/app/app.routes.ts): `projects/airport-management/src/app/app.routes.ts`
- [Operations center](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/tree/main/projects/airport-management/src/app/features/operations-center): `projects/airport-management/src/app/features/operations-center`
- [Flight operations](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/tree/main/projects/airport-management/src/app/features/flight-operations): `projects/airport-management/src/app/features/flight-operations`
- [Fleet configuration](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/tree/main/projects/airport-management/src/app/features/fleet-configuration): `projects/airport-management/src/app/features/fleet-configuration`
- [Network infrastructure](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/tree/main/projects/airport-management/src/app/features/network-infrastructure): `projects/airport-management/src/app/features/network-infrastructure`
- [Workforce intelligence](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/tree/main/projects/airport-management/src/app/features/workforce-intelligence): `projects/airport-management/src/app/features/workforce-intelligence`
- [Fare engine routes](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/airport-management/src/app/features/commercial-revenue/fare-engine/fare-engine.routes.ts): `projects/airport-management/src/app/features/commercial-revenue/fare-engine/fare-engine.routes.ts`
- [Fare engine state](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/airport-management/src/app/features/commercial-revenue/fare-engine/store/fare-engine.store.ts): `projects/airport-management/src/app/features/commercial-revenue/fare-engine/store/fare-engine.store.ts`

### Shared services

- [Shared authentication API](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/shared-core/src/shared/services/authentication/auth.service.ts): `projects/shared-core/src/shared/services/authentication/auth.service.ts`
- [Route management API](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/shared-core/src/shared/services/management-system/routes.service.ts): `projects/shared-core/src/shared/services/management-system/routes.service.ts`
- [Route data models](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/shared-core/src/shared/models/routes.model.ts): `projects/shared-core/src/shared/models/routes.model.ts`

### Identity and access

- [Portal authentication](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/features/authentication/services/auth.service.ts): `projects/customer-portal/src/app/features/authentication/services/auth.service.ts`
- [Portal session state](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/core/auth/auth-state.service.ts): `projects/customer-portal/src/app/core/auth/auth-state.service.ts`
- [Portal token storage](https://github.com/abdelrahmanahmad99/asiaporeair-workspace/blob/main/projects/customer-portal/src/app/core/storage/storage.service.ts): `projects/customer-portal/src/app/core/storage/storage.service.ts`

### Other components

- **Traveler**
- **Airline API**

## Connections

- Traveler → Portal routing: opens portal (evidence: `projects/customer-portal/src/app/app.routes.ts`)
- Portal routing → Flight information: routes to (evidence: `projects/customer-portal/src/app/app.routes.ts`)
- Portal routing → Booking: routes to (evidence: `projects/customer-portal/src/app/app.routes.ts`)
- Portal routing → Manage trips: routes to (evidence: `projects/customer-portal/src/app/app.routes.ts`)
- Portal routing → Check-in: routes to (evidence: `projects/customer-portal/src/app/app.routes.ts`)
- Portal routing → Loyalty: routes to (evidence: `projects/customer-portal/src/app/app.routes.ts`)
- Portal routing → Travel information: routes to (evidence: `projects/customer-portal/src/app/app.routes.ts`)
- Flight search → Flight information: renders within (evidence: `projects/customer-portal/src/app/features/flight-info/flight-search/components/flight-search-engine/flight-search-engine.component.ts`)
- Portal routing → Portal authentication: routes to (evidence: `projects/customer-portal/src/app/app.routes.ts`)
- Portal authentication → Portal token storage: stores tokens (evidence: `projects/customer-portal/src/app/features/authentication/services/auth.service.ts`)
- Portal session state → Portal token storage: reads tokens (evidence: `projects/customer-portal/src/app/core/auth/auth-state.service.ts`)
- Management routing → Operations center: loads operations (evidence: `projects/airport-management/src/app/app.routes.ts`)
- Management routing → Flight operations: routes to (evidence: `projects/airport-management/src/app/app.routes.ts`)
- Management routing → Fleet configuration: routes to (evidence: `projects/airport-management/src/app/app.routes.ts`)
- Management routing → Network infrastructure: routes to (evidence: `projects/airport-management/src/app/app.routes.ts`)
- Management routing → Workforce intelligence: routes to (evidence: `projects/airport-management/src/app/app.routes.ts`)
- Fare engine routes → Fare engine state: uses state
- Shared authentication API → Airline API: sends HTTP (evidence: `projects/shared-core/src/shared/services/authentication/auth.service.ts`)
- Route management API → Airline API: sends HTTP (evidence: `projects/shared-core/src/shared/services/management-system/routes.service.ts`)
- Route management API → Route data models: uses models (evidence: `projects/shared-core/src/shared/services/management-system/routes.service.ts`)
