How kltn-fa26/be-backoffice-stockflow-commerce works
StockFlowCommerce is a Spring Boot modular monolith for furniture-manufacturer inventory management and e-commerce. A documented checkout flow enters through the order capability and synchronously reserves inventory through its public API, allowing both operations to share a transaction. The broader product also covers product and storefront management, procurement, warehouse fulfillment, identity and permissions, customer records, design, chat, notifications, payments, and reporting. Common modules provide security, auditing, storage, and web infrastructure. Several modules are represented by the README and tree only; their internal call links are therefore omitted.
Main entry points: order Orders · InventoryServiceImpl.java Inventory And Reservations · IdentityServiceImpl.java Identity And RBAC · catalog Catalog Pricing
Components 21
Commerce
- Customer Profiles
src/main/java/com/stockflow/customer - Product Master
src/main/java/com/stockflow/product/internal/domain/Product.java - Catalog Pricing
src/main/java/com/stockflow/catalog - Orders
src/main/java/com/stockflow/order - Payments
src/main/java/com/stockflow/payment
Stock Operations
- Inventory And Reservations
src/main/java/com/stockflow/inventory/internal/service/InventoryServiceImpl.java - Warehouse
src/main/java/com/stockflow/warehouse - Picking And Shipping
src/main/java/com/stockflow/fulfillment/internal/service/FulfillmentServiceImpl.java - Procurement And QC
src/main/java/com/stockflow/procurement
Identity And Engagement
- Identity And RBAC
src/main/java/com/stockflow/identity/internal/service/IdentityServiceImpl.java - Design Studio
src/main/java/com/stockflow/design - Customer Chat
src/main/java/com/stockflow/chat - Notifications
src/main/java/com/stockflow/notification
Insights
- Reports And Dashboards
src/main/java/com/stockflow/reporting
Platform Services
- Domain Event Contracts
src/main/java/com/stockflow/contracts - Permissions And Data Scope
src/main/java/com/stockflow/common/security - Audit Trail
src/main/java/com/stockflow/common/audit - File Storage
src/main/java/com/stockflow/common/storage/FileStorage.java - API And Web Plumbing
src/main/java/com/stockflow/common/api - PostgreSQL
Other components
- Staff Or Shopper
Connections 7
- Staff Or Shopper → Orders: places order
- Orders → Inventory And Reservations: reserves stock
- Staff Or Shopper → Identity And RBAC: signs in
- Staff Or Shopper → Catalog Pricing: browses catalog
- Inventory And Reservations → PostgreSQL: persists stock
- Orders → PostgreSQL: persists orders
- Identity And RBAC → PostgreSQL: persists identities