# artempridyba/warehousemanagementsystem architecture

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

- Interactive diagram: https://gitdiagram.com/artempridyba/warehousemanagementsystem
- Repository: https://github.com/artempridyba/warehousemanagementsystem

## Overview

WarehouseManagementSystem is a web-based WMS with a React/TypeScript client and ASP.NET Core API. Users authenticate, then manage products and warehouse structure, receive or ship goods, adjust and transfer stock, review transactions, and work with task and dashboard views. The server separates HTTP controllers, application services, and tenant-scoped EF Core persistence. README establishes the stack; sampled source confirms routing, authentication, inventory operations, and database behavior. Some client-to-API links are dashed because the available excerpts do not show those calls.

Main entry points: [`client/src/App.tsx`](https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/App.tsx) (Client routing), [`client/src/api/axiosInstance.ts`](https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/api/axiosInstance.ts) (HTTP client), [`server/Warehouse.API/Infrastructure/Data/ApplicationDbContext.cs`](https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Infrastructure/Data/ApplicationDbContext.cs) (Tenant-scoped data access), [`server/Warehouse.API/Program.cs`](https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Program.cs) (API startup and wiring)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_app["Client routing<br/>[App.tsx]"]
  node_dashboard["Dashboard<br/>[DashboardPage.tsx]"]
  node_products_ui["Product catalog<br/>[ProductsPage.tsx]"]
  node_warehouse_ui["Warehouse setup<br/>[WarehousePage.tsx]"]
  node_inbound_ui["Inbound receiving<br/>[InboundPage.tsx]"]
  node_outbound_ui["Outbound shipping<br/>[OutboundPage.tsx]"]
  node_inventory_ui["Inventory control<br/>[InventoryPage.tsx]"]
  node_history_ui["Transaction history"]
  node_tasks_ui["Work orders<br/>[WorkOrdersPage.tsx]"]
  node_client_http["HTTP client<br/>[axiosInstance.ts]"]
  node_auth_ui["Sign-in and registration<br/>[LoginPage.tsx]"]
end

subgraph group_api["API and services"]
  node_auth_service["Authentication service<br/>[AuthService.cs]"]
  node_auth_controller["Authentication endpoints<br/>[AuthController.cs]"]
  node_inventory_controller["Inventory endpoints"]
  node_api_setup["API startup and wiring<br/>[Program.cs]"]
end

subgraph group_domain["Warehouse operations"]
  node_inventory_service["Inventory operations"]
  node_other_ops["Orders and master data<br/>[Services]"]
  node_task_ops["Work-order operations"]
  node_domain_entities["Warehouse entities<br/>[Entities]"]
end

subgraph group_persistence["Persistence"]
  node_db_context["Tenant-scoped data access"]
end

node_operator(("Warehouse user"))
node_postgres[("PostgreSQL")]

node_operator -->|"uses"| node_app
node_app -->|"routes"| node_dashboard
node_app -->|"routes"| node_products_ui
node_app -->|"routes"| node_warehouse_ui
node_app -->|"routes"| node_inbound_ui
node_app -->|"routes"| node_outbound_ui
node_app -->|"routes"| node_inventory_ui
node_app -->|"routes"| node_history_ui
node_app -->|"routes"| node_tasks_ui
node_app -->|"routes"| node_auth_ui
node_auth_ui -.->|"submits requests"| node_client_http
node_client_http -.->|"HTTP requests"| node_auth_controller
node_client_http -.->|"HTTP requests"| node_inventory_controller
node_auth_controller -->|"delegates"| node_auth_service
node_inventory_controller -->|"delegates"| node_inventory_service
node_api_setup -->|"registers"| node_auth_service
node_api_setup -->|"registers"| node_inventory_service
node_inventory_service -->|"reads and writes"| node_db_context
node_auth_service -->|"creates tenant"| node_db_context
node_db_context -->|"maps entities"| node_domain_entities
node_api_setup -->|"configures"| node_db_context
node_db_context -->|"persists data"| node_postgres
node_dashboard -.->|"requests data"| node_client_http
node_products_ui -.->|"requests data"| node_client_http
node_warehouse_ui -.->|"requests data"| node_client_http
node_inbound_ui -.->|"requests data"| node_client_http
node_outbound_ui -.->|"requests data"| node_client_http
node_inventory_ui -.->|"requests data"| node_client_http
node_history_ui -.->|"requests data"| node_client_http
node_tasks_ui -.->|"requests data"| node_client_http

click node_app "https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/App.tsx"
click node_dashboard "https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/DashboardPage.tsx"
click node_products_ui "https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/ProductsPage.tsx"
click node_warehouse_ui "https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/WarehousePage.tsx"
click node_inbound_ui "https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/InboundPage.tsx"
click node_outbound_ui "https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/OutboundPage.tsx"
click node_inventory_ui "https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/InventoryPage.tsx"
click node_history_ui "https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/TransactionHistoryPage.tsx"
click node_tasks_ui "https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/WorkOrdersPage.tsx"
click node_client_http "https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/api/axiosInstance.ts"
click node_auth_ui "https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/auth/LoginPage.tsx"
click node_auth_service "https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Application/Services/AuthService.cs"
click node_auth_controller "https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Controllers/AuthController.cs"
click node_inventory_controller "https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Controllers/InventoryController.cs"
click node_inventory_service "https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Application/Services/InventoryService.cs"
click node_other_ops "https://github.com/artempridyba/warehousemanagementsystem/tree/main/server/Warehouse.API/Application/Services"
click node_task_ops "https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Application/Services/WorkOrderService.cs"
click node_domain_entities "https://github.com/artempridyba/warehousemanagementsystem/tree/main/server/Warehouse.API/Domain/Entities"
click node_db_context "https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Infrastructure/Data/ApplicationDbContext.cs"
click node_api_setup "https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Program.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_app,node_dashboard,node_products_ui,node_warehouse_ui,node_inbound_ui,node_outbound_ui,node_inventory_ui,node_history_ui,node_tasks_ui,node_client_http,node_auth_ui,node_operator toneBlue
class node_auth_service,node_auth_controller,node_inventory_controller,node_api_setup,node_postgres toneAmber
class node_inventory_service,node_other_ops,node_task_ops,node_domain_entities toneMint
class node_db_context toneRose
```

## Components

### Web client

- [Client routing](https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/App.tsx): `client/src/App.tsx`
- [Dashboard](https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/DashboardPage.tsx): `client/src/pages/DashboardPage.tsx`
- [Product catalog](https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/ProductsPage.tsx): `client/src/pages/ProductsPage.tsx`
- [Warehouse setup](https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/WarehousePage.tsx): `client/src/pages/WarehousePage.tsx`
- [Inbound receiving](https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/InboundPage.tsx): `client/src/pages/InboundPage.tsx`
- [Outbound shipping](https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/OutboundPage.tsx): `client/src/pages/OutboundPage.tsx`
- [Inventory control](https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/InventoryPage.tsx): `client/src/pages/InventoryPage.tsx`
- [Transaction history](https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/TransactionHistoryPage.tsx): `client/src/pages/TransactionHistoryPage.tsx`
- [Work orders](https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/WorkOrdersPage.tsx): `client/src/pages/WorkOrdersPage.tsx`
- [HTTP client](https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/api/axiosInstance.ts): `client/src/api/axiosInstance.ts`
- [Sign-in and registration](https://github.com/artempridyba/warehousemanagementsystem/blob/main/client/src/pages/auth/LoginPage.tsx): `client/src/pages/auth/LoginPage.tsx`

### API and services

- [Authentication service](https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Application/Services/AuthService.cs): `server/Warehouse.API/Application/Services/AuthService.cs`
- [Authentication endpoints](https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Controllers/AuthController.cs): `server/Warehouse.API/Controllers/AuthController.cs`
- [Inventory endpoints](https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Controllers/InventoryController.cs): `server/Warehouse.API/Controllers/InventoryController.cs`
- [API startup and wiring](https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Program.cs): `server/Warehouse.API/Program.cs`

### Warehouse operations

- [Inventory operations](https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Application/Services/InventoryService.cs): `server/Warehouse.API/Application/Services/InventoryService.cs`
- [Orders and master data](https://github.com/artempridyba/warehousemanagementsystem/tree/main/server/Warehouse.API/Application/Services): `server/Warehouse.API/Application/Services`
- [Work-order operations](https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Application/Services/WorkOrderService.cs): `server/Warehouse.API/Application/Services/WorkOrderService.cs`
- [Warehouse entities](https://github.com/artempridyba/warehousemanagementsystem/tree/main/server/Warehouse.API/Domain/Entities): `server/Warehouse.API/Domain/Entities`

### Persistence

- [Tenant-scoped data access](https://github.com/artempridyba/warehousemanagementsystem/blob/main/server/Warehouse.API/Infrastructure/Data/ApplicationDbContext.cs): `server/Warehouse.API/Infrastructure/Data/ApplicationDbContext.cs`

### Other components

- **Warehouse user**
- **PostgreSQL**

## Connections

- Warehouse user → Client routing: uses (evidence: `client/src/App.tsx`)
- Client routing → Dashboard: routes (evidence: `client/src/App.tsx`)
- Client routing → Product catalog: routes (evidence: `client/src/App.tsx`)
- Client routing → Warehouse setup: routes (evidence: `client/src/App.tsx`)
- Client routing → Inbound receiving: routes (evidence: `client/src/App.tsx`)
- Client routing → Outbound shipping: routes (evidence: `client/src/App.tsx`)
- Client routing → Inventory control: routes (evidence: `client/src/App.tsx`)
- Client routing → Transaction history: routes (evidence: `client/src/App.tsx`)
- Client routing → Work orders: routes (evidence: `client/src/App.tsx`)
- Client routing → Sign-in and registration: routes (evidence: `client/src/App.tsx`)
- Sign-in and registration → HTTP client: submits requests
- HTTP client → Authentication endpoints: HTTP requests
- HTTP client → Inventory endpoints: HTTP requests
- Authentication endpoints → Authentication service: delegates (evidence: `server/Warehouse.API/Controllers/AuthController.cs`)
- Inventory endpoints → Inventory operations: delegates (evidence: `server/Warehouse.API/Controllers/InventoryController.cs`)
- API startup and wiring → Authentication service: registers (evidence: `server/Warehouse.API/Program.cs`)
- API startup and wiring → Inventory operations: registers (evidence: `server/Warehouse.API/Program.cs`)
- Inventory operations → Tenant-scoped data access: reads and writes (evidence: `server/Warehouse.API/Application/Services/InventoryService.cs`)
- Authentication service → Tenant-scoped data access: creates tenant (evidence: `server/Warehouse.API/Application/Services/AuthService.cs`)
- Tenant-scoped data access → Warehouse entities: maps entities (evidence: `server/Warehouse.API/Infrastructure/Data/ApplicationDbContext.cs`)
- API startup and wiring → Tenant-scoped data access: configures (evidence: `server/Warehouse.API/Program.cs`)
- Tenant-scoped data access → PostgreSQL: persists data
- Dashboard → HTTP client: requests data
- Product catalog → HTTP client: requests data
- Warehouse setup → HTTP client: requests data
- Inbound receiving → HTTP client: requests data
- Outbound shipping → HTTP client: requests data
- Inventory control → HTTP client: requests data
- Transaction history → HTTP client: requests data
- Work orders → HTTP client: requests data
