How santidev11/backendentregadeproductos works
BackendEntregadeProductos is a FastAPI API for product delivery with simulated electronic invoicing. Its principal workflow runs from role-based login through warehouse and catalog setup, invoice creation and delivery, customer signature-based acceptance or rejection, and receipt confirmation; invoices can also be downloaded as PDFs. Separate capabilities cover company registration and approval, user/role/permission administration, customer lookup, and statistics. The README documents the domain flow; source excerpts show selected routing, authorization, scope, and persistence details, so unsampled service links are not asserted.
Main entry points: main.py REST API · services.py Invoice workflow · empresas Company management · tipos Product types
Components 17
API and security
- REST API
app/config/main.py - Authentication
app/modulos/auth - Token and permissions
app/core/deps.py - MySQL database
app/config/database.py
Organizations and access
- Registration
app/modulos/registro - Company management
app/modulos/empresas - User management
app/modulos/usuarios - Roles and permissions
app/modulos/roles - Permission catalog
app/modulos/permisos
Delivery setup
- Warehouses
app/modulos/bodegas - Product types
app/modulos/tipos - Customer lookup
app/modulos/clientes
Invoice lifecycle
- Invoice workflow
app/modulos/facturas/services.py - Invoice issuer
app/modulos/facturas/emisor.py - Invoice PDF
app/modulos/facturas/pdf.py
Reporting
- Statistics
app/modulos/estadisticas
Other components
- Frontend client
Connections 23
- Frontend client → REST API: calls
README.md - REST API → Authentication: registers routes
app/config/main.py - REST API → Registration: registers routes
app/config/main.py - REST API → Company management: registers routes
app/config/main.py - REST API → Warehouses: registers routes
app/config/main.py - REST API → Product types: registers routes
app/config/main.py - REST API → Customer lookup: registers routes
app/config/main.py - REST API → Invoice workflow: registers routes
app/config/main.py - REST API → User management: registers routes
app/config/main.py - REST API → Roles and permissions: registers routes
app/config/main.py - REST API → Permission catalog: registers routes
app/config/main.py - REST API → Statistics: registers routes
app/config/main.py - Authentication → Token and permissions: authenticates
app/modulos/auth/router.py - Token and permissions → MySQL database: loads user
app/core/deps.py - Registration → Company management: creates company
README.md - Company management → User management: creates account
README.md - Warehouses → Product types: sets catalog
README.md - Product types → Invoice workflow: used in invoice
README.md - Customer lookup → Invoice workflow: selects recipient
README.md - Invoice workflow → Invoice issuer: uses issuer data
app/modulos/facturas/services.py - Invoice workflow → Invoice PDF: generates PDF
app/modulos/facturas/services.py - Invoice workflow → MySQL database: persists invoices
README.md - Statistics → MySQL database: queries data
README.md