How franciscobdev/gestion-inventario-confiteria works
Arteconfi is a confectionery inventory and shop-management application with a Django backend and React frontend. Owners sign in to manage stock, sales, orders, suppliers, finances, and reports; customers browse the shop and manage pickup orders. The frontend context coordinates authentication and operational state, with mock data and backend API support indicated by its imports. Backend domain modules cover the corresponding business areas, and the README identifies MariaDB as the database. Backend request-to-model wiring was not sampled, so those links are left unasserted.
Main entry points: AppContext.jsx App State · App.jsx App Routing · Layout.jsx Admin Layout · clienteApi.js Customer API
Components 31
Frontend
- App Routing
frontend/src/App.jsx - Admin Layout
frontend/src/components/Layout.jsx - App State
frontend/src/context/AppContext.jsx - API Client
frontend/src/services/api.js - Mock Data
frontend/src/data/mockData.js - Login
frontend/src/pages/LoginPage.jsx
Inventory Operations
- Inventory UI
frontend/src/pages/InventarioPage.jsx - Stock Exits
frontend/src/pages/SalidasStockPage.jsx
Commerce
- Orders UI
frontend/src/pages/EncargosPage.jsx - Public Shop
frontend/src/pages/TiendaPage.jsx - Customer Portal
frontend/src/clientes/ClientePortal.jsx - Customer Pages
frontend/src/clientes/ClientePages.jsx - Customer API
frontend/src/clientes/clienteApi.js - Suppliers UI
frontend/src/pages/ProveedoresPage.jsx
Finance and Insights
- Finance UI
frontend/src/pages/FinanzasPage.jsx - Dashboard
frontend/src/pages/DashboardPage.jsx - Reports UI
frontend/src/pages/ReportesPage.jsx - System Settings
frontend/src/pages/RespaldosConfigPage.jsx
Django Backend
- Product and Lot Management
backend/apps/gestion/models.py - Stock Service
backend/apps/gestion/services.py - Purchases
backend/apps/compras/views.py - Order Management
backend/apps/encargos/views.py - Customer Accounts
backend/apps/clientes/views.py - Purchasing Domain
backend/apps/compras/views.py - Finance Domain
backend/apps/finanzas/views.py - Reports
backend/apps/reportes/views.py - API Routes
backend/config/urls.py - Database Configuration
backend/config/settings.py
Other components
- Owner
- Customer
- MariaDB
Connections 30
- Owner → App Routing: opens
frontend/src/App.jsx - Customer → App Routing: opens
frontend/src/App.jsx - App Routing → App State: provides state
frontend/src/App.jsx - App Routing → Admin Layout: routes admin
frontend/src/App.jsx - App Routing → Public Shop: routes shop
frontend/src/App.jsx - App Routing → Login: routes login
frontend/src/App.jsx - App Routing → Customer Portal: routes portal
frontend/src/App.jsx - Admin Layout → Inventory UI: renders route
- Admin Layout → App State: reads state
frontend/src/components/Layout.jsx - App State → API Client: calls
frontend/src/context/AppContext.jsx - App State → Mock Data: loads data
frontend/src/context/AppContext.jsx - Login → App State: authenticates via
frontend/src/pages/LoginPage.jsx - Customer Portal → Customer Pages: renders
frontend/src/clientes/ClientePortal.jsx - Customer Pages → Customer API: uses
frontend/src/clientes/ClientePages.jsx - Customer API → Customer Accounts: HTTP requests
- Customer API → Order Management: HTTP requests
- App State → Product and Lot Management: backend operations
- App State → Purchases: backend operations
- Inventory UI → App State: reads and updates
frontend/src/pages/InventarioPage.jsx - Stock Exits → App State: uses state
frontend/src/pages/SalidasStockPage.jsx - Orders UI → App State: uses state
frontend/src/pages/EncargosPage.jsx - Public Shop → App State: uses state
frontend/src/pages/TiendaPage.jsx - Suppliers UI → App State: uses state
frontend/src/pages/ProveedoresPage.jsx - Finance UI → App State: uses state
frontend/src/pages/FinanzasPage.jsx - Dashboard → App State: reads data
frontend/src/pages/DashboardPage.jsx - Reports UI → App State: reads data
frontend/src/pages/ReportesPage.jsx - App State → Stock Service: stock actions
- Stock Service → Product and Lot Management: updates lots and stock
backend/apps/gestion/services.py - Database Configuration → MariaDB: configures connection
- API Routes → Product and Lot Management: routes requests