How jairos94/puravidastore works
PuraVidaStore is a store-management and point-of-sale application: its Angular client exposes sales, inventory movements, products, customers, warehouses, users, and reporting, while an ASP.NET Core API provides business operations backed by SQL Server. The principal workflow is a user entering the client, using a business feature, and having the API read or persist store data; invoice and movement records support reporting. The sampled code confirms movement and sales persistence and report assembly. Other feature paths are represented from the repository tree, but their runtime wiring was not sampled.
Main entry points: principal-routing.module.ts Feature navigation · VentasQuery.cs Sales queries · PuraVidaStoreContext.cs EF Core context · ReportesController.cs Reporting endpoints
Components 24
Angular client
- Angular app
FrontEnd/FrontEndPuraVidaStore/src/app/app.module.ts - Sign in
FrontEnd/FrontEndPuraVidaStore/src/app/login/login.component.ts - Feature navigation
FrontEnd/FrontEndPuraVidaStore/src/app/principal/principal-routing.module.ts - Sales screens
FrontEnd/FrontEndPuraVidaStore/src/app/principal/ventas - Inventory screens
FrontEnd/FrontEndPuraVidaStore/src/app/principal/movimientos - Products and warehouses
FrontEnd/FrontEndPuraVidaStore/src/app/principal/productos - Customer screens
FrontEnd/FrontEndPuraVidaStore/src/app/principal/clientes - Users and settings
FrontEnd/FrontEndPuraVidaStore/src/app/principal/usuarios - Report screens
FrontEnd/FrontEndPuraVidaStore/src/app/principal/ventas/reportes/reportes.component.ts
Store API
- ASP.NET API
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Program.cs - Sales endpoints
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Controllers/VentasController.cs - Movement endpoints
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Controllers/MovimientosController.cs - Reporting endpoints
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Controllers/ReportesController.cs - User endpoints
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Controllers/UsuarioController.cs - Other store endpoints
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Controllers
Data access
- Sales queries
Backend/PuraVidaStoreBK/PuraVidaStoreBK/ExecQuerys/VentasQuery.cs - Movement queries
Backend/PuraVidaStoreBK/PuraVidaStoreBK/ExecQuerys/MovimientosQuery.cs - Report queries
Backend/PuraVidaStoreBK/PuraVidaStoreBK/ExecQuerys/ReportesQuery.cs
SQL data model
- EF Core context
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Models/DbContex/PuraVidaStoreContext.cs - Store database
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Models/DbContex/PuraVidaStoreContext.cs - Invoices and details
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Models/DbContex/Factura.cs - Inventory movements
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Models/DbContex/Movimiento.cs - Users and people
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Models/DbContex/Usuario.cs
Other components
- Store operator
Connections 21
- Store operator → Angular app: uses
- Angular app → Sign in: declares
FrontEnd/FrontEndPuraVidaStore/src/app/app.module.ts - Angular app → Feature navigation: imports routing
FrontEnd/FrontEndPuraVidaStore/src/app/app.module.ts - Feature navigation → Sales screens: routes to
FrontEnd/FrontEndPuraVidaStore/src/app/principal/principal-routing.module.ts - Feature navigation → Inventory screens: routes to
FrontEnd/FrontEndPuraVidaStore/src/app/principal/principal-routing.module.ts - Feature navigation → Products and warehouses: routes to
FrontEnd/FrontEndPuraVidaStore/src/app/principal/principal-routing.module.ts - Feature navigation → Customer screens: routes to
FrontEnd/FrontEndPuraVidaStore/src/app/principal/principal-routing.module.ts - Feature navigation → Users and settings: routes to
FrontEnd/FrontEndPuraVidaStore/src/app/principal/principal-routing.module.ts - Store operator → ASP.NET API: requests operations
- Reporting endpoints → Report queries: queries reports
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Controllers/ReportesController.cs - Reporting endpoints → Sales queries: queries sales
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Controllers/ReportesController.cs - Reporting endpoints → Inventory movements: assembles report
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Controllers/ReportesController.cs - Movement endpoints → Movement queries: delegates movements
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Controllers/MovimientosController.cs - Sales endpoints → Sales queries: delegates sales
- User endpoints → Users and people: manages accounts
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Controllers/UsuarioController.cs - Sales queries → EF Core context: persists invoices
Backend/PuraVidaStoreBK/PuraVidaStoreBK/ExecQuerys/VentasQuery.cs - Movement queries → EF Core context: updates inventory
Backend/PuraVidaStoreBK/PuraVidaStoreBK/ExecQuerys/MovimientosQuery.cs - Report queries → EF Core context: reads reports
- EF Core context → Store database: maps entities
Backend/PuraVidaStoreBK/PuraVidaStoreBK/Models/DbContex/PuraVidaStoreContext.cs - Sales queries → Invoices and details: writes invoices
Backend/PuraVidaStoreBK/PuraVidaStoreBK/ExecQuerys/VentasQuery.cs - Movement queries → Inventory movements: writes movements
Backend/PuraVidaStoreBK/PuraVidaStoreBK/ExecQuerys/MovimientosQuery.cs