How davidalcrca/proyectofinalprogramacionweb works
Orígenes SV is a restaurant operations ERP. Staff sign in, select a branch, and use the workspace pages to manage sales, invoices, inventory and recipes, purchasing, cash, payroll, and security. Requests pass through the frontend API to the backend routes and domain services, which persist operational state in PostgreSQL. The graph preserves capabilities present in the application navigation and source tree; several backend route and service implementations were not excerpted, so their internal links are omitted or marked unverified.
Main entry points: App.jsx Workspace and navigation · api.js Frontend API client · services Operational services · Dashboard.jsx Dashboard
Components 22
Workspace
- Workspace and navigation
origenes-sv/Frontend/src/App.jsx - Branch context
origenes-sv/Frontend/src/context/WorkspaceContext.js - Frontend API client
origenes-sv/Frontend/src/api/api.js
Restaurant operations
- Dashboard
origenes-sv/Frontend/src/pages/Dashboard/Dashboard.jsx - Point of sale
origenes-sv/Frontend/src/pages/Pos/Pos.jsx - Sales invoices
origenes-sv/Frontend/src/pages/Invoices/Invoices.jsx - Inventory
origenes-sv/Frontend/src/pages/Inventory/Inventory.jsx - Product recipes
origenes-sv/Frontend/src/pages/ProductRecipe/ProductRecipe.jsx - Purchases and suppliers
origenes-sv/Frontend/src/pages/Purchases/Purchases.jsx - Cash and shifts
origenes-sv/Frontend/src/pages/Cash/Cash.jsx - Staff and payroll
origenes-sv/Frontend/src/pages/Payroll/Payroll.jsx - Security settings
origenes-sv/Frontend/src/pages/Security/Security.jsx
Backend API
- HTTP application
origenes-sv/Backend/src/app.js - API route registry
origenes-sv/Backend/src/routes/index.js - Operational routes
origenes-sv/Backend/src/routes - Operational controllers
origenes-sv/Backend/src/controllers - Operational services
origenes-sv/Backend/src/services - Domain rules
origenes-sv/Backend/src/domain/domain.js
Identity and persistence
- Authentication controller
origenes-sv/Backend/src/controllers/authController.js - Authentication service
origenes-sv/Backend/src/services/authService.js - PostgreSQL
origenes-sv/Backend/src/config/db.js
Other components
- Restaurant staff
Connections 30
- Restaurant staff → Workspace and navigation: uses
origenes-sv/Frontend/src/App.jsx - Workspace and navigation → Branch context: provides context
origenes-sv/Frontend/src/App.jsx - Workspace and navigation → Dashboard: routes to
origenes-sv/Frontend/src/App.jsx - Workspace and navigation → Point of sale: routes to
origenes-sv/Frontend/src/App.jsx - Workspace and navigation → Sales invoices: routes to
origenes-sv/Frontend/src/App.jsx - Workspace and navigation → Inventory: routes to
origenes-sv/Frontend/src/App.jsx - Workspace and navigation → Product recipes: routes to
origenes-sv/Frontend/src/App.jsx - Workspace and navigation → Purchases and suppliers: routes to
origenes-sv/Frontend/src/App.jsx - Workspace and navigation → Cash and shifts: routes to
origenes-sv/Frontend/src/App.jsx - Workspace and navigation → Staff and payroll: routes to
origenes-sv/Frontend/src/App.jsx - Workspace and navigation → Security settings: routes to
origenes-sv/Frontend/src/App.jsx - Workspace and navigation → Frontend API client: calls
origenes-sv/Frontend/src/App.jsx - Dashboard → Frontend API client: calls
origenes-sv/Frontend/src/pages/Dashboard/Dashboard.jsx - Point of sale → Frontend API client: calls
origenes-sv/Frontend/src/pages/Pos/Pos.jsx - Sales invoices → Frontend API client: calls
origenes-sv/Frontend/src/pages/Invoices/Invoices.jsx - Inventory → Frontend API client: calls
origenes-sv/Frontend/src/pages/Inventory/Inventory.jsx - Product recipes → Frontend API client: calls
origenes-sv/Frontend/src/pages/ProductRecipe/ProductRecipe.jsx - Purchases and suppliers → Frontend API client: calls
origenes-sv/Frontend/src/pages/Purchases/Purchases.jsx - Cash and shifts → Frontend API client: calls
origenes-sv/Frontend/src/pages/Cash/Cash.jsx - Staff and payroll → Frontend API client: calls
origenes-sv/Frontend/src/pages/Payroll/Payroll.jsx - Security settings → Frontend API client: calls
origenes-sv/Frontend/src/pages/Security/Security.jsx - Frontend API client → HTTP application: HTTP requests
origenes-sv/Frontend/src/api/api.js - HTTP application → API route registry: mounts routes
origenes-sv/Backend/src/app.js - API route registry → Operational routes: mounts routes
origenes-sv/Backend/src/routes/index.js - Operational routes → Operational controllers: dispatches
origenes-sv/Backend/src/routes/employee.routes.js - Operational controllers → Operational services: delegates to
origenes-sv/Backend/src/controllers/authController.js - Authentication controller → Authentication service: calls
origenes-sv/Backend/src/controllers/authController.js - Authentication service → PostgreSQL: queries
origenes-sv/Backend/src/services/authService.js - Operational services → PostgreSQL: persists data
origenes-sv/Backend/src/services/authService.js - Operational services → Domain rules: uses rules
origenes-sv/Backend/src/services/saleService.js