How yussri-dev/inventory works
This repository combines an offline-capable inventory/POS client with a multi-tenant .NET API. The principal workflow is recording sales locally, queuing them for synchronization, and processing server-side requests through services into persistent business data. The README documents the API’s CQRS/MediatR and clean-architecture boundaries; sampled local code confirms SQLite-backed catalog queries and sale/session models. Several client and API subsystems are represented by tree paths and README capabilities, but their internal calls were not sampled, so the graph avoids asserting those connections.
Main entry points: LocalSaleService.cs Local POS services · PosController.cs API controllers · PosLocalDbContext.cs Local database · Repository.cs Repositories and unit of work
Components 21
POS client
- MAUI application
Inventory.Ui/App.xaml.cs - POS state
Inventory.Ui/State/PosState.cs - Client sync
Inventory.Ui/Services/Sync/SyncCoordinator.cs
Offline operations
- Local POS services
Inventory.LocalDB/Services/LocalSaleService.cs - Catalog queries
Inventory.LocalDB/Services/LocalProductCatalogQueryService.cs - Local sale and session
Inventory.LocalDB/Models/LocalSale.cs - Sync queue
Inventory.LocalDB/Models/SyncQueueStatus.cs - Local database
Inventory.LocalDB/Context/PosLocalDbContext.cs - Receipt printing
Inventory.LocalDB/Services/ReceiptService.cs
HTTP API
- API controllers
dotNetApiProBoilerplate.Api/Controllers/PosController.cs - JWT authentication
dotNetApiProBoilerplate.Api/Controllers/AuthController.cs - Error middleware
dotNetApiProBoilerplate.Api/Middleware/ExceptionHandlingMiddleware.cs
Business services
- Cash session service
dotNetApiProBoilerplate.Services/CashSessionService.cs - Inventory sessions
dotNetApiProBoilerplate.Services/InventorySessionService.cs - Customer query handlers
dotNetApiProBoilerplate.Services/Features/CustomerTransactions/GetAll/GetAllCustomerTransactionsQueryHandler.cs - Product query handlers
dotNetApiProBoilerplate.Services/Features/Products/Search/SearchProductsForAdminQueryHandler.cs
Domain and persistence
- Business entities
dotNetApiProBoilerplate.Domain/Models/Sale.cs - API contracts
dotNetApiProBoilerplate.Dto/Pages/Results/PagedResult.cs - Repositories and unit of work
dotNetApiProBoilerplate.Infrastructure/Repositories/Repository.cs - Server database
dotNetApiProBoilerplate.Infrastructure/Data/InventoryDbContext.cs
Other components
- POS operator
Connections 20
- POS operator → MAUI application: uses
README.md - MAUI application → POS state: updates
- POS state → Local POS services: records sales
- Local POS services → Local database: reads and writes
Inventory.Sync.Scenarios/Program.cs - Local database → Local sale and session: stores
Inventory.LocalDB/Context/PosLocalDbContext.cs - Local POS services → Sync queue: queues operations
- Catalog queries → Local database: queries catalog
Inventory.LocalDB/Services/LocalProductCatalogQueryService.cs - Local POS services → Receipt printing: creates receipts
- Client sync → Local POS services: collects local data
- Client sync → API controllers: uploads batches
- API controllers → Customer query handlers: dispatches requests
README.md - API controllers → Product query handlers: dispatches requests
README.md - Customer query handlers → Business entities: queries business data
dotNetApiProBoilerplate.Services/Features/CustomerTransactions/GetAll/GetAllCustomerTransactionsQueryHandler.cs - Product query handlers → API contracts: returns paged results
dotNetApiProBoilerplate.Services/Features/Products/Search/SearchProductsForAdminQueryHandler.cs - Cash session service → Repositories and unit of work: uses repositories
dotNetApiProBoilerplate.Services/CashSessionService.cs - Cash session service → Business entities: manages sessions
dotNetApiProBoilerplate.Services/CashSessionService.cs - Inventory sessions → Repositories and unit of work: uses repositories
- Repositories and unit of work → Server database: persists entities
- JWT authentication → API controllers: protects endpoints
- API controllers → Error middleware: returns errors