How itschrisedu/nexora_back works
NEXORA is a NestJS commerce-lifecycle and credit-scoring backend for footwear retailers. Staff use authenticated APIs to manage customers, inventory, suppliers, and orders; order operations progress through preparation, dispatch, and delivery, with finance, credit, and notifications supporting the lifecycle. Reporting, POS/catalog, invoicing, configuration, and ML integration are additional capabilities indicated by the module tree. The excerpts confirm selected controller-to-query/command calls and direct Prisma access; wiring among unsampled contexts is therefore not inferred.
Main entry points: prisma.service.ts Persistence access · pedidos.controller.ts Order lifecycle · clientes.controller.ts Customer CRM and credit · ClientesQueryService.ts Customer queries
Components 22
Access and Platform
- Authentication
src/auth/auth.service.ts - Tenant management
src/auth/tenant.controller.ts - Business configuration
src/configuracion/configuracion.controller.ts
Commerce Operations
- Customer CRM and credit
src/bounded-contexts/clientes/infrastructure/clientes.controller.ts - Customer queries
src/bounded-contexts/clientes/application/queries/ClientesQueryService.ts - Order lifecycle
src/bounded-contexts/comercial/infrastructure/pedidos.controller.ts - Order commands
src/bounded-contexts/comercial/application/commands - Catalog and POS
src/bounded-contexts/comercial/application/CatalogoService.ts
Supply and Inventory
- Inventory operations
src/bounded-contexts/inventario/infrastructure/inventario.controller.ts - Inventory queries
src/bounded-contexts/inventario/application/queries/InventarioQueryService.ts - Supplier purchasing
src/bounded-contexts/proveedores/infrastructure/proveedores.controller.ts - Supplier queries
src/bounded-contexts/proveedores/application/queries/ProveedoresQueryService.ts
Business Services
- Financial operations
src/bounded-contexts/financiero/infrastructure/financiero.controller.ts - Financial queries
src/bounded-contexts/financiero/application/queries/FinancieroQueryService.ts - SRI invoicing
src/bounded-contexts/facturacion-sri/application/FacturacionSriService.ts - Operational reports
src/bounded-contexts/reportes/application/ReportesService.ts - Notifications
src/bounded-contexts/notificaciones/application/NotificacionService.ts - ML integration
src/bounded-contexts/comercial/application/MlBridgeService.ts
Shared Infrastructure
- Persistence access
src/shared/infrastructure/prisma/prisma.service.ts - PostgreSQL
- Email delivery
Other components
- Retail staff
Connections 19
- Retail staff → Authentication: authenticates
- Retail staff → Customer CRM and credit: manages clients
- Retail staff → Order lifecycle: manages orders
- Retail staff → Inventory operations: manages stock
- Retail staff → Supplier purchasing: manages purchasing
- Retail staff → Financial operations: manages finances
- Retail staff → Business configuration: configures business
- Customer CRM and credit → Customer queries: queries
- Order lifecycle → Order commands: dispatches commands
- Order lifecycle → Persistence access: reads orders
- Inventory operations → Inventory queries: queries
- Supplier purchasing → Supplier queries: queries
- Financial operations → Financial queries: queries
- Customer queries → Persistence access: queries data
- Inventory queries → Persistence access: queries stock
- Supplier queries → Persistence access: queries purchasing
- Financial queries → Persistence access: queries finance
- Persistence access → PostgreSQL: persists data
- Notifications → Email delivery: sends email