How josseth-arroyo-dev/puntolocal-ve-uneti works
PuntoLocal VE is a full-stack point-of-sale and inventory application for small Venezuelan retailers. Staff use the React app to sign in, manage the catalog and stock, record mixed-currency sales, print receipts, and review sales and inventory reports; the Express API applies authentication and role controls and persists operational data in MySQL. BCV rate synchronization and offline/local operation are also major capabilities. The graph follows documented capabilities and shown route/controller/service references; some frontend-to-API and unsampled subsystem links are left unverified rather than inferred.
Main entry points: App.tsx React application · httpClient.ts HTTP client · database.ts MySQL / MariaDB · PosPage.tsx Point of sale
Components 27
Storefront
- React application
frontend/src/App.tsx - Auth context
frontend/src/context/AuthContext.tsx - Catalog management
frontend/src/pages/CatalogPage.tsx - Point of sale
frontend/src/pages/PosPage.tsx - Payment capture
frontend/src/components/pos/ProcessPaymentModal.tsx - Printable receipt
frontend/src/components/receipts/SaleReceiptPrint.tsx - Inventory view
frontend/src/pages/InventoryPage.tsx - Reports and reprints
frontend/src/pages/ReportsPage.tsx - Sales history
frontend/src/pages/SalesHistoryPage.tsx - User administration
frontend/src/pages/UsersPage.tsx - HTTP client
frontend/src/services/httpClient.ts
REST API
- Versioned API
backend/src/app.ts - Product routes
backend/src/routes/product.routes.ts - Product controller
backend/src/controllers/product.controller.ts - Sales controller
backend/src/controllers/sale.controller.ts
Business services
- Catalog services
backend/src/services/product.service.ts - Sales processing
backend/src/services/sale.service.ts - Inventory operations
backend/src/services/inventory.service.ts - Reporting
backend/src/services/report.service.ts - BCV rate sync
backend/src/services/exchangeRateSync.service.ts
Persistence
- MySQL / MariaDB
backend/src/config/database.ts - Sales repository
backend/src/repositories/sale.repository.ts - Product repository
backend/src/repositories/product.repository.ts
Runtime and integrations
- Rate scheduler
backend/src/jobs/exchangeRateScheduler.ts - Local product images
backend/src/middlewares/upload.middleware.ts
Other components
- Store staff
- BCV rate service
Connections 27
- Store staff → React application: uses
- React application → Auth context: provides auth
frontend/src/App.tsx - React application → Catalog management: routes to
frontend/src/App.tsx - React application → Point of sale: routes to
frontend/src/App.tsx - React application → Inventory view: routes to
frontend/src/App.tsx - React application → Reports and reprints: routes to
frontend/src/App.tsx - React application → Sales history: routes to
frontend/src/App.tsx - React application → User administration: routes to
frontend/src/App.tsx - Point of sale → Payment capture: collects payment
- Reports and reprints → Printable receipt: renders receipt
frontend/src/pages/ReportsPage.tsx - Reports and reprints → HTTP client: requests data
frontend/src/pages/ReportsPage.tsx - Catalog management → HTTP client: requests data
- Point of sale → HTTP client: submits sale
- HTTP client → Versioned API: calls REST API
- Versioned API → Product routes: mounts routes
backend/src/app.ts - Product routes → Product controller: dispatches
backend/src/routes/product.routes.ts - Product controller → Catalog services: calls
backend/src/controllers/product.controller.ts - Sales controller → Sales processing: calls
backend/src/controllers/sale.controller.ts - Catalog services → Product repository: uses
backend/src/services/product.service.ts - Sales processing → Sales repository: uses
backend/src/repositories/sale.repository.ts - Inventory operations → MySQL / MariaDB: accesses
- Reporting → MySQL / MariaDB: accesses
- Sales repository → MySQL / MariaDB: queries
backend/src/repositories/sale.repository.ts - Product repository → MySQL / MariaDB: accesses
- Rate scheduler → BCV rate sync: schedules sync
- BCV rate sync → BCV rate service: fetches rate
- Catalog services → Local product images: handles images
backend/src/services/product.service.ts