<<<<<<< HEAD Backend for a warehouse management system that runs a PDA-driven warehouse floor end to end — from truck unload through putaway, picking, packing, sorting, and final dispatch. Built as an ASP.NET Core Web API consumed by a companion Flutter app (wms-app).
- ASP.NET Core 8 (C# 12) Web API, controller + service layered
- Entity Framework Core 8 on SQL Server
- SignalR for real-time putaway/sorting station updates
- Swagger / OpenAPI for interactive API docs
Each module is a controller + service pair, backed by its own set of EF Core models:
| Module | Covers |
|---|---|
| Receiving | Scan parts against a PO, resolve condition/lot/serial, assign to pallet |
| Putaway | Route a received pallet to ASRS or a prework station |
| Unload | Unload a replenishment pallet back onto the floor, lot- and serial-aware |
| Basket | Load unloaded stock into baskets for picking, S/N-gated where required |
| Picking | Allocate stock to pick orders, station-based pick flow |
| Packing | Pack picked items, close out pick orders |
| Sorting | Sort packed cartons into outbound batches |
| Check-In | Stage and dispatch outbound shipments |
| Health | GET /api/health — lets clients confirm they've reached this API |
Controllers/ → thin HTTP layer, one action per endpoint
Services/ → business logic, one interface + implementation per module
DTOs/ → request/response shapes, decoupled from EF models
Models/ → EF Core entities, grouped by module
Data/ → DbContext + per-entity Fluent API configuration
Migrations/ → EF Core migration history
Hubs/ → SignalR hubs (Putaway, Sorting)
Every endpoint returns a ServiceResult from the service layer, which
ToActionResult() maps to the right HTTP status — controllers stay free of
business logic.
Prerequisites: .NET 8 SDK, a SQL Server instance (LocalDB/Express is
fine), the dotnet-ef global tool (dotnet tool install --global dotnet-ef).
-
Clone the repo.
-
Point the app at your database.
appsettings.jsonships with a placeholder connection string on purpose — never put real credentials there, since it's tracked by git. Instead, createWmsApi/WmsApi/appsettings.Development.json(already gitignored) with:{ "ConnectionStrings": { "Default": "Server=.\\SQLEXPRESS;Database=WmsDB;User Id=...;Password=...;TrustServerCertificate=True;" } }ASP.NET Core loads this automatically on top of
appsettings.jsonwhen running locally (ASPNETCORE_ENVIRONMENT=Development). -
Apply migrations:
cd WmsApi/WmsApi dotnet ef database update -
Run it:
dotnet run
The API listens on
http://0.0.0.0:5000. Swagger UI is athttp://localhost:5000/swagger.
WmsApi/
└── WmsApi/
├── Controllers/
├── Services/
├── DTOs/
├── Models/
├── Data/
│ └── Configurations/
├── Migrations/
└── Hubs/
=======
API-V1