How juanespinoza96/saas works
SaasPOS is a multi-tenant point-of-sale and commerce-management SaaS with separate tenant and platform-admin web apps. In the main workflow, a staff member uses the POS to submit a sale; the API applies tenant context, pricing and stock rules, then persists sale data. The Web-to-API sale handoff and several unsampled service/controller links are not visible in the excerpts, so those relationships are marked unverified. The graph also preserves documented-by-tree capability areas such as reporting, SRI invoicing, AI, subscriptions, trials and administration.
Main entry points: AppDbContext.cs Tenant data access · VentasController.cs Sales API · Tenants Commerce endpoints · App.tsx Tenant web app
Components 20
Tenant application
- Tenant web app
src/SaasPOS.Web/src/App.tsx - POS screens
src/SaasPOS.Web/src/pages/PosNormalPage.tsx - Commerce features
src/SaasPOS.Web/src/pages
Platform administration
- Admin web app
src/SaasPOS.Admin/src/App.tsx - Platform controls
src/SaasPOS.Admin/src/pages
API and domain workflows
- Authentication API
src/SaasPOS.Api/Controllers/AuthController.cs - Sales API
src/SaasPOS.Api/Controllers/Tenants/VentasController.cs - Commerce endpoints
src/SaasPOS.Api/Controllers/Tenants - Admin endpoints
src/SaasPOS.Api/Controllers/Admin - Tenant and security
src/SaasPOS.Api/Middleware
Business services
- Identity service
src/SaasPOS.Infrastructure/Services/AuthService.cs - Stock service
src/SaasPOS.Infrastructure/Services/StockService.cs - Billing and trials
src/SaasPOS.Infrastructure/Services/BillingService.cs - Reporting and export
src/SaasPOS.Infrastructure/Services/ReportEngine.cs - AI and SRI
src/SaasPOS.Infrastructure/Services - Audit and notices
src/SaasPOS.Infrastructure/Services/AuditService.cs
Persistence and domain
- Tenant data access
src/SaasPOS.Infrastructure/Data/AppDbContext.cs - Commerce records
src/SaasPOS.Domain/Entities - Plans and subscriptions
src/SaasPOS.Domain/Entities/Plan.cs
Other components
- Commerce staff
Connections 23
- Commerce staff → Tenant web app: uses
- Tenant web app → POS screens: presents
- Tenant web app → Commerce features: presents
- POS screens → Sales API: submits sale
- Commerce features → Commerce endpoints: uses endpoints
- Sales API → Stock service: uses
src/SaasPOS.Api/Controllers/Tenants/VentasController.cs - Sales API → Tenant data access: reads and writes
src/SaasPOS.Api/Controllers/Tenants/VentasController.cs - Sales API → Commerce records: creates sales
src/SaasPOS.Api/Controllers/Tenants/VentasController.cs - Tenant and security → Tenant data access: sets tenant scope
- Tenant data access → Commerce records: maps records
src/SaasPOS.Infrastructure/Data/AppDbContext.cs - Commerce staff → Authentication API: authenticates
- Authentication API → Identity service: delegates
src/SaasPOS.Api/Controllers/AuthController.cs - Identity service → Tenant data access: reads and writes
src/SaasPOS.Infrastructure/Services/AuthService.cs - Admin web app → Platform controls: presents
- Platform controls → Admin endpoints: uses endpoints
- Admin endpoints → Tenant data access: accesses data
src/SaasPOS.Api/Controllers/Admin/ComerciosController.cs - Admin endpoints → Billing and trials: uses billing
- Commerce endpoints → Reporting and export: requests reports
- Commerce endpoints → AI and SRI: uses integrations
src/SaasPOS.Api/Controllers/Tenants/UsuariosController.cs - Commerce endpoints → Audit and notices: records activity
- Billing and trials → Plans and subscriptions: manages subscriptions
- Billing and trials → Tenant data access: persists billing
- Reporting and export → Tenant data access: queries records
src/SaasPOS.Infrastructure/Services/ReportEngine.cs