# noureldinfarag1/fullfilmentinventorymanagementplatform architecture

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

- Interactive diagram: https://gitdiagram.com/noureldinfarag1/fullfilmentinventorymanagementplatform
- Repository: https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform

## Overview

Fulfillment is an API-backed platform for catalog, warehouse stock, customers, and order processing. Users authenticate, maintain catalog and inventory, create customer orders, add lines, and move orders through confirmation, completion, or cancellation; order history and an operations summary support review. The README documents these capabilities and their role policies. Sampled code confirms the order lifecycle, stock movement history, and EF persistence boundary; other feature internals are represented by their existing directories because their source was not sampled.

Main entry points: [`src/Fulfillment.Application/Common/Interfaces/IApplicationDbContext.cs`](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Application/Common/Interfaces/IApplicationDbContext.cs) (Persistence contract), [`src/Fulfillment.Application/Orders`](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Orders) (Order workflows), [`src/Fulfillment.Api/Controllers/ProductsController.cs`](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/ProductsController.cs) (Catalog APIs), [`src/Fulfillment.Application/Inventory`](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Inventory) (Inventory workflows)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["HTTP API"]
  node_orders_api["Orders API"]
  node_inventory_api["Inventory API"]
  node_catalog_api["Catalog APIs"]
  node_customers_api["Customer API"]
  node_warehouse_api["Warehouse API"]
  node_reports_api["Reports API"]
  node_auth_api["Authentication API<br/>[AuthController.cs]"]
end

subgraph group_features["Application Features"]
  node_orders_app["Order workflows<br/>[Orders]"]
  node_inventory_app["Inventory workflows<br/>[Inventory]"]
  node_catalog_app["Catalog workflows<br/>[Products]"]
  node_categories_app["Category workflows<br/>[Categories]"]
  node_customers_app["Customer workflows<br/>[Customers]"]
  node_warehouse_app["Warehouse workflows<br/>[Warehouses]"]
  node_reports_app["Operations reporting<br/>[Reports]"]
  node_auth_app["Login workflow<br/>[Auth]"]
  node_db_contract["Persistence contract"]
end

subgraph group_domain["Domain Model"]
  node_domain_order["Order rules<br/>[Order.cs]"]
  node_domain_stock["Stock rules<br/>[InventoryItem.cs]"]
end

subgraph group_infra["Infrastructure"]
  node_database[("Fulfillment database")]
  node_identity["Identity and JWT<br/>[IdentityService.cs]"]
end

node_user(("Authenticated users"))

node_user -->|"logs in"| node_auth_api
node_auth_api -->|"dispatches"| node_auth_app
node_user -->|"manages orders"| node_orders_api
node_orders_api -->|"dispatches commands"| node_orders_app
node_orders_app -.->|"applies lifecycle rules"| node_domain_order
node_user -->|"manages stock"| node_inventory_api
node_inventory_api -->|"dispatches"| node_inventory_app
node_user -->|"reads and manages catalog"| node_catalog_api
node_catalog_api -->|"dispatches"| node_catalog_app
node_catalog_api -->|"dispatches"| node_categories_app
node_user -->|"manages customers"| node_customers_api
node_customers_api -->|"dispatches"| node_customers_app
node_user -->|"manages warehouses"| node_warehouse_api
node_warehouse_api -->|"dispatches"| node_warehouse_app
node_user -->|"views summary"| node_reports_api
node_reports_api -->|"dispatches query"| node_reports_app
node_orders_app -.->|"reads and writes"| node_db_contract
node_inventory_app -.->|"reads and writes"| node_db_contract
node_catalog_app -.->|"reads and writes"| node_db_contract
node_categories_app -->|"reads and writes"| node_db_contract
node_customers_app -->|"reads and writes"| node_db_contract
node_warehouse_app -.->|"reads and writes"| node_db_contract
node_reports_app -.->|"reads"| node_db_contract
node_db_contract -->|"implemented by"| node_database
node_inventory_app -.->|"changes quantities"| node_domain_stock
node_orders_app -.->|"allocates or restores"| node_domain_stock
node_auth_app -.->|"authenticates"| node_identity

click node_orders_api "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/OrdersController.cs"
click node_inventory_api "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/InventoryController.cs"
click node_catalog_api "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/ProductsController.cs"
click node_customers_api "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/CustomerController.cs"
click node_warehouse_api "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/WarehousesController.cs"
click node_reports_api "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/ReportsController.cs"
click node_auth_api "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/AuthController.cs"
click node_orders_app "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Orders"
click node_inventory_app "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Inventory"
click node_catalog_app "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Products"
click node_categories_app "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Categories"
click node_customers_app "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Customers"
click node_warehouse_app "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Warehouses"
click node_reports_app "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Reports"
click node_auth_app "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Auth"
click node_domain_order "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Domain/Entities/Order.cs"
click node_domain_stock "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Domain/Entities/InventoryItem.cs"
click node_db_contract "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Application/Common/Interfaces/IApplicationDbContext.cs"
click node_database "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Infrastructure/Persistence/FulfillmentDbContext.cs"
click node_identity "https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Infrastructure/Identity/IdentityService.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_orders_api,node_inventory_api,node_catalog_api,node_customers_api,node_warehouse_api,node_reports_api,node_auth_api,node_user toneBlue
class node_orders_app,node_inventory_app,node_catalog_app,node_categories_app,node_customers_app,node_warehouse_app,node_reports_app,node_auth_app,node_db_contract toneAmber
class node_domain_order,node_domain_stock toneMint
class node_database,node_identity toneRose
```

## Components

### HTTP API

- [Orders API](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/OrdersController.cs): `src/Fulfillment.Api/Controllers/OrdersController.cs`
- [Inventory API](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/InventoryController.cs): `src/Fulfillment.Api/Controllers/InventoryController.cs`
- [Catalog APIs](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/ProductsController.cs): `src/Fulfillment.Api/Controllers/ProductsController.cs`
- [Customer API](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/CustomerController.cs): `src/Fulfillment.Api/Controllers/CustomerController.cs`
- [Warehouse API](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/WarehousesController.cs): `src/Fulfillment.Api/Controllers/WarehousesController.cs`
- [Reports API](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/ReportsController.cs): `src/Fulfillment.Api/Controllers/ReportsController.cs`
- [Authentication API](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Api/Controllers/AuthController.cs): `src/Fulfillment.Api/Controllers/AuthController.cs`

### Application Features

- [Order workflows](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Orders): `src/Fulfillment.Application/Orders`
- [Inventory workflows](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Inventory): `src/Fulfillment.Application/Inventory`
- [Catalog workflows](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Products): `src/Fulfillment.Application/Products`
- [Category workflows](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Categories): `src/Fulfillment.Application/Categories`
- [Customer workflows](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Customers): `src/Fulfillment.Application/Customers`
- [Warehouse workflows](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Warehouses): `src/Fulfillment.Application/Warehouses`
- [Operations reporting](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Reports): `src/Fulfillment.Application/Reports`
- [Login workflow](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/tree/master/src/Fulfillment.Application/Auth): `src/Fulfillment.Application/Auth`
- [Persistence contract](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Application/Common/Interfaces/IApplicationDbContext.cs): `src/Fulfillment.Application/Common/Interfaces/IApplicationDbContext.cs`

### Domain Model

- [Order rules](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Domain/Entities/Order.cs): `src/Fulfillment.Domain/Entities/Order.cs`
- [Stock rules](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Domain/Entities/InventoryItem.cs): `src/Fulfillment.Domain/Entities/InventoryItem.cs`

### Infrastructure

- [Fulfillment database](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Infrastructure/Persistence/FulfillmentDbContext.cs): `src/Fulfillment.Infrastructure/Persistence/FulfillmentDbContext.cs`
- [Identity and JWT](https://github.com/noureldinfarag1/fullfilmentinventorymanagementplatform/blob/master/src/Fulfillment.Infrastructure/Identity/IdentityService.cs): `src/Fulfillment.Infrastructure/Identity/IdentityService.cs`

### Other components

- **Authenticated users**

## Connections

- Authenticated users → Authentication API: logs in
- Authentication API → Login workflow: dispatches (evidence: `src/Fulfillment.Api/Controllers/AuthController.cs`)
- Authenticated users → Orders API: manages orders
- Orders API → Order workflows: dispatches commands (evidence: `src/Fulfillment.Api/Controllers/OrdersController.cs`)
- Order workflows → Order rules: applies lifecycle rules (evidence: `src/Fulfillment.Application/Orders/Queries/GetOrders/GetOrdersQueryHandler.cs`)
- Authenticated users → Inventory API: manages stock
- Inventory API → Inventory workflows: dispatches (evidence: `src/Fulfillment.Api/Controllers/InventoryController.cs`)
- Authenticated users → Catalog APIs: reads and manages catalog
- Catalog APIs → Catalog workflows: dispatches (evidence: `src/Fulfillment.Api/Controllers/ProductsController.cs`)
- Catalog APIs → Category workflows: dispatches
- Authenticated users → Customer API: manages customers
- Customer API → Customer workflows: dispatches
- Authenticated users → Warehouse API: manages warehouses
- Warehouse API → Warehouse workflows: dispatches (evidence: `src/Fulfillment.Api/Controllers/WarehousesController.cs`)
- Authenticated users → Reports API: views summary
- Reports API → Operations reporting: dispatches query
- Order workflows → Persistence contract: reads and writes (evidence: `src/Fulfillment.Application/Orders/Queries/GetOrders/GetOrdersQueryHandler.cs`)
- Inventory workflows → Persistence contract: reads and writes (evidence: `src/Fulfillment.Application/Inventory/Queries/GetProductStock/GetProductStockQueryHandler.cs`)
- Catalog workflows → Persistence contract: reads and writes (evidence: `src/Fulfillment.Application/Products/Queries/GetProducts/GetProductsQueryHandler.cs`)
- Category workflows → Persistence contract: reads and writes (evidence: `src/Fulfillment.Application/Categories/Queries/GetCategories/GetCategoriesQueryHandler.cs`)
- Customer workflows → Persistence contract: reads and writes (evidence: `src/Fulfillment.Application/Customers/Queries/GetCustomers/GetCustomersQueryHandler.cs`)
- Warehouse workflows → Persistence contract: reads and writes (evidence: `src/Fulfillment.Application/Warehouses/Queries/GetWarehouses/GetWarehousesQueryHandler.cs`)
- Operations reporting → Persistence contract: reads (evidence: `src/Fulfillment.Application/Reports/Queries/GetOperationsSummary/GetOperationsSummaryQueryHandler.cs`)
- Persistence contract → Fulfillment database: implemented by (evidence: `src/Fulfillment.Infrastructure/Persistence/FulfillmentDbContext.cs`)
- Inventory workflows → Stock rules: changes quantities
- Order workflows → Stock rules: allocates or restores (evidence: `src/Fulfillment.Application/Orders/Queries/GetOrderHistory/GetOrderHistoryQueryHandler.cs`)
- Login workflow → Identity and JWT: authenticates
