How bola-j/contact-lenses-erp works
Lensee Production is an Arabic-first optical-retail management system. A user works through the browser client to the ASP.NET host, which exposes identity and business workflows for catalog, inventory, CRM, operations, payments, and finance; reporting and notifications support the operational result. The graph preserves the README’s major capabilities and sampled internal services. Many endpoint implementations and frontend request paths were not sampled, so uncertain interactions are omitted rather than inferred.
Main entry points: Program.cs ASP.NET host · OperationCorrectionService.cs Operation corrections · app.js Web application · RefreshTokenSessionService.cs Refresh-token sessions
Components 23
Browser client
- Web application
frontend/app.js
API and workflows
- ASP.NET host
backend/Lensee.Host/Program.cs - Operation corrections
backend/Lensee.Host/Services/OperationCorrectionService.cs - Refresh-token sessions
backend/Lensee.Host/Infrastructure/RefreshTokenSessionService.cs
Business domains
- Identity and auth
backend/Lensee.Host/Endpoints/AuthEndpoints.cs - Catalog management
backend/Lensee.Host/Endpoints/CatalogEndpoints.cs - Inventory ledger
backend/Lensee.Modules.Inventory/Services/StockLedgerService.cs - Merchant CRM
backend/Lensee.Host/Endpoints/CrmEndpoints.cs - Retail operations
backend/Lensee.Host/Endpoints/OperationsEndpoints.cs - Payments
backend/Lensee.Host/Endpoints/PaymentsEndpoints.cs - Finance
backend/Lensee.Host/Endpoints/FinanceEndpoints.cs - Reports and exports
backend/Lensee.Host/Endpoints/ReportsEndpoints.cs - Notifications
backend/Lensee.Host/Endpoints/NotificationsEndpoints.cs - Shopify sync
backend/Lensee.Host/Infrastructure/ShopifyIntegrationService.cs - Catalog data
backend/Lensee.Modules.Catalog/Data/CatalogDbContext.cs - Identity data
backend/Lensee.Modules.Identity/Data/IdentityDbContext.cs - Inventory data
backend/Lensee.Modules.Inventory/Data/InventoryDbContext.cs - Operations data
backend/Lensee.Modules.Operations/Data/OperationsDbContext.cs - Payments data
backend/Lensee.Modules.Payments/Data/PaymentsDbContext.cs - Category hierarchy
backend/Lensee.Modules.Catalog/Services/CategoryTreeService.cs
Shared services
- Shared data and outbox
backend/Lensee.SharedKernel/Data/SharedDbContext.cs - Document renderers
backend/Lensee.Modules.Reporting/Infrastructure/DocumentServices.cs
Other components
- Retail staff
Connections 26
- Retail staff → Web application: uses
README.md - Web application → ASP.NET host: submits requests
- ASP.NET host → Identity and auth: routes
backend/Lensee.Host/Program.cs - ASP.NET host → Catalog management: routes
backend/Lensee.Host/Program.cs - ASP.NET host → Inventory ledger: routes
README.md - ASP.NET host → Merchant CRM: routes
README.md - ASP.NET host → Retail operations: routes
README.md - ASP.NET host → Payments: routes
README.md - ASP.NET host → Finance: routes
README.md - ASP.NET host → Reports and exports: routes
README.md - ASP.NET host → Notifications: routes
README.md - ASP.NET host → Shopify sync: supports optional sync
README.md - ASP.NET host → Catalog data: configures
backend/Lensee.Host/Program.cs - ASP.NET host → Identity data: configures
backend/Lensee.Host/Program.cs - ASP.NET host → Inventory data: configures
backend/Lensee.Host/Program.cs - ASP.NET host → Operations data: configures
backend/Lensee.Host/Program.cs - ASP.NET host → Payments data: configures
backend/Lensee.Host/Program.cs - ASP.NET host → Shared data and outbox: configures
backend/Lensee.Host/Program.cs - Catalog management → Category hierarchy: builds hierarchy
backend/Lensee.Modules.Catalog/Services/CategoryTreeService.cs - Category hierarchy → Catalog data: reads categories
backend/Lensee.Modules.Catalog/Services/CategoryTreeService.cs - Identity and auth → Refresh-token sessions: manages sessions
backend/Lensee.Host/Infrastructure/RefreshTokenSessionService.cs - Refresh-token sessions → Identity data: reads and writes tokens
backend/Lensee.Host/Infrastructure/RefreshTokenSessionService.cs - Operation corrections → Operations data: updates operations
backend/Lensee.Host/Services/OperationCorrectionService.cs - Operation corrections → Inventory data: adjusts stock
backend/Lensee.Host/Services/OperationCorrectionService.cs - Operation corrections → Payments data: settles payments
backend/Lensee.Host/Services/OperationCorrectionService.cs - Reports and exports → Document renderers: renders documents
backend/Lensee.Modules.Reporting/Infrastructure/DocumentServices.cs