How userdavidgar03/warehouse works
Warehouse OS es una aplicación web para administrar inventario, proveedores, entradas de stock y órdenes de salida con autenticación y escaneo de SKU/códigos de barras. El flujo principal va desde la interfaz React, a través del cliente HTTP con JWT, hasta los endpoints Minimal API y la persistencia relacional. El README documenta capacidades que no aparecen completas en los extractos; las relaciones no verificables en el código se apoyan solo en esa documentación.
Main entry points: App.jsx App y sesión · Program.cs Endpoints y reglas · warehouseApi.js Cliente REST JWT · ProductsTab.jsx Inventario y CSV
Components 24
Interfaz de almacén
- App y sesión
frontend/client/src/App.jsx - Acceso y registro
frontend/client/src/pages/auth/AuthFormView.jsx - Bienvenida
frontend/client/src/pages/auth/WelcomeView.jsx - Cabecera
frontend/client/src/components/layout/Header.jsx - Navegación
frontend/client/src/components/layout/Sidebar.jsx - Métricas KPI
frontend/client/src/components/dashboard/KpiCards.jsx - Cliente REST JWT
frontend/client/src/api/warehouseApi.js
API y dominio
- Endpoints y reglas
backend/WarehouseAPI/Program.cs - Usuario
backend/WarehouseAPI/Models/User.cs - Producto e inventario
backend/WarehouseAPI/Models/Product.cs - Proveedor
backend/WarehouseAPI/Models/Supplier.cs - Orden y partidas
backend/WarehouseAPI/Models/Order.cs
Persistencia
- Contexto EF
backend/WarehouseAPI/Data/WarehouseContext.cs - PostgreSQL
Operaciones UI
- Inventario y CSV
frontend/client/src/pages/dashboard/ProductsTab.jsx - Alta de producto
frontend/client/src/pages/dashboard/AddProductTab.jsx - Alertas de stock
frontend/client/src/pages/dashboard/AlertsTab.jsx - Proveedores UI
frontend/client/src/pages/dashboard/SuppliersTab.jsx - Historial órdenes
frontend/client/src/pages/dashboard/OrdersTab.jsx - Crear orden
frontend/client/src/components/dashboard/NewOrderModal.jsx - Entrada de stock
frontend/client/src/components/dashboard/StockEntryModal.jsx - Escáner cámara
frontend/client/src/pages/dashboard/BarcodeScannerModal.jsx - Exportación CSV
frontend/client/src/utils/exportcsv.js
Other components
- Personal almacén
Connections 31
- Personal almacén → App y sesión: opera
README.md - App y sesión → Bienvenida: muestra
frontend/client/src/App.jsx - App y sesión → Acceso y registro: muestra
frontend/client/src/App.jsx - App y sesión → Cabecera: renderiza
frontend/client/src/App.jsx - App y sesión → Navegación: renderiza
frontend/client/src/App.jsx - App y sesión → Métricas KPI: renderiza
frontend/client/src/App.jsx - App y sesión → Inventario y CSV: muestra
frontend/client/src/App.jsx - App y sesión → Alta de producto: muestra
frontend/client/src/App.jsx - App y sesión → Alertas de stock: muestra
frontend/client/src/App.jsx - App y sesión → Proveedores UI: muestra
frontend/client/src/App.jsx - App y sesión → Historial órdenes: muestra
frontend/client/src/App.jsx - Acceso y registro → Cliente REST JWT: solicita acceso
frontend/client/src/pages/auth/AuthFormView.jsx - App y sesión → Cliente REST JWT: carga datos
frontend/client/src/App.jsx - Inventario y CSV → Entrada de stock: abre
frontend/client/src/pages/dashboard/ProductsTab.jsx - Inventario y CSV → Exportación CSV: exporta
frontend/client/src/pages/dashboard/ProductsTab.jsx - Historial órdenes → Crear orden: abre
frontend/client/src/pages/dashboard/OrdersTab.jsx - Crear orden → Escáner cámara: abre
frontend/client/src/components/dashboard/NewOrderModal.jsx - Alta de producto → Escáner cámara: usa
frontend/client/src/pages/dashboard/AddProductTab.jsx - Inventario y CSV → Cliente REST JWT: consulta API
- Alta de producto → Cliente REST JWT: consulta API
frontend/client/src/pages/dashboard/AddProductTab.jsx - Proveedores UI → Cliente REST JWT: consulta API
frontend/client/src/pages/dashboard/SuppliersTab.jsx - Crear orden → Cliente REST JWT: registra orden
frontend/client/src/components/dashboard/NewOrderModal.jsx - Entrada de stock → Cliente REST JWT: registra entrada
frontend/client/src/components/dashboard/StockEntryModal.jsx - Cliente REST JWT → Endpoints y reglas: envía HTTP
README.md - Endpoints y reglas → Contexto EF: consulta y guarda
backend/WarehouseAPI/Program.cs - Endpoints y reglas → Usuario: gestiona usuarios
backend/WarehouseAPI/Program.cs - Endpoints y reglas → Producto e inventario: gestiona productos
backend/WarehouseAPI/Program.cs - Endpoints y reglas → Proveedor: gestiona proveedores
backend/WarehouseAPI/Program.cs - Endpoints y reglas → Orden y partidas: crea órdenes
backend/WarehouseAPI/Program.cs - Contexto EF → PostgreSQL: persiste datos
README.md - Endpoints y reglas → PostgreSQL: transacciona entradas y salidas
README.md