How saidwalikhan/stitchflow works
TailorPro is a tailoring-shop order-management API. Its sampled application workflow creates an order for the authenticated customer: it checks customer, services, measurements, and shop; generates an order number; builds order items using stored service prices; then saves the order. Domain entities represent shops, services, customer measurements, and order status. The tree has no README content or controller source, so the API-to-command dispatch is not shown; the diagram limits those connections to the host’s documented controller mapping and the handler’s evidenced dependencies.
Main entry points: CreateOrderCommandHandler.cs Create order handler · Program.cs API host · ApplicationDbContext.cs Application context · ValidationBehavior.cs Validation pipeline
Components 13
API host
- API host
TailorPro/TailorPro.Api/Program.cs - Controller routes
TailorPro/TailorPro.Api
Order application
- Create order request
TailorPro/TailorPro.Application/Features/Orders/Commands/CreateOrder/CreateOrderCommand.cs - Validation pipeline
TailorPro/TailorPro.Application/Common/Behaviors/ValidationBehavior.cs - Order validator
TailorPro/TailorPro.Application/Features/Orders/Commands/CreateOrder/CreateOrderCommandValidator.cs - Create order handler
TailorPro/TailorPro.Application/Features/Orders/Commands/CreateOrder/CreateOrderCommandHandler.cs
Tailoring domain
- Order and profiles
TailorPro/TailorPro.Domain/Entities/Order.cs - Shop services
TailorPro/TailorPro.Domain/Entities/Service.cs
Infrastructure
- Application context
TailorPro/TailorPro.Infrastructure/Persistence/ApplicationDbContext.cs - Application database
- Current user service
TailorPro/TailorPro.Infrastructure/Identity/CurrentUserService.cs - Order number generator
TailorPro/TailorPro.Infrastructure/Services/OrderNumberGenerator.cs
Other components
- API user
Connections 13
- API user → API host: sends requests
- API host → Controller routes: maps controllers
- API host → Validation pipeline: registers application
- API host → Application context: registers infrastructure
- Validation pipeline → Order validator: runs validators
- Validation pipeline → Create order handler: continues request
- Create order handler → Current user service: reads user
- Create order handler → Application context: loads profiles and services
- Create order handler → Order number generator: generates number
- Create order handler → Order and profiles: creates order
- Create order handler → Shop services: uses service prices
- Create order handler → Application context: adds and saves order
- Application context → Application database: reads and writes