How alexpoool/caguayo works
ITEMLI is a white-label, multi-tenant ERP with a React web client, FastAPI backend and a legacy-data migration utility. The main workflow is a user operating business modules in the web app, which communicates with the API and tenant databases; domains include inventory, purchasing, sales, projects, HR, administration and reporting. Authentication, tenant selection and branding support that workflow. The README documents these product capabilities, but excerpts show only selected wiring, so unverified module links are omitted or dashed. ETL is a separate migration path for the original installation.
Main entry points: backend/main.py FastAPI application · App.tsx Web app and routing · etl/main.py Migration orchestrator · connection.py Tenant database connections
Components 22
Web application
- Web app and routing
frontend/src/App.tsx - Clients and accounts
frontend/src/features/terceros/application/casos-uso.ts - Inventory
frontend/src/features/inventario - Purchasing
frontend/src/features/compra - Sales
frontend/src/features/ventas - Projects and services
frontend/src/features/proyectos - Human resources
frontend/src/features/rrhh - Reports and dashboard
frontend/src/features/reportes - Administration and branding
frontend/src/features/administracion - Mobile client
mobile/app/src/main/kotlin/com/itemli/mobile/MainActivity.kt
API and business services
- FastAPI application
backend/main.py - Authentication and access
backend/src/services/auth_service.py - Report generation
backend/src/services/reportes_service.py - Business services and calculations
backend/src/services
Persistence and messaging
- ERP domain models
backend/src/models/cliente.py - Tenant database connections
backend/src/database/connection.py - Messaging and events
backend/src/messaging
Legacy migration
- Migration orchestrator
etl/main.py - Legacy and dump configuration
etl/config.py - Migration database access
etl/db.py - Customer migration phase
etl/migrar_clientes.py
Other components
- ERP user
Connections 27
- ERP user → Web app and routing: uses
- Web app and routing → Clients and accounts: routes to
- Web app and routing → Inventory: routes to
- Web app and routing → Purchasing: routes to
- Web app and routing → Sales: routes to
- Web app and routing → Projects and services: routes to
- Web app and routing → Human resources: routes to
- Web app and routing → Reports and dashboard: routes to
- Web app and routing → Administration and branding: routes to
- Clients and accounts → FastAPI application: requests API
- Inventory → FastAPI application: requests API
- Purchasing → FastAPI application: requests API
- Sales → FastAPI application: requests API
- Projects and services → FastAPI application: requests API
- Human resources → FastAPI application: requests API
- Reports and dashboard → FastAPI application: requests API
- Administration and branding → FastAPI application: requests API
- FastAPI application → Authentication and access: imports
backend/main.py - FastAPI application → Tenant database connections: sets database context
backend/main.py - FastAPI application → Report generation: routes reports
- Report generation → Tenant database connections: reads data
- Business services and calculations → ERP domain models: uses domain records
backend/src/services/servicio_service.py - ERP domain models → Tenant database connections: persisted in
- Mobile client → FastAPI application: connects to API
- Migration orchestrator → Legacy and dump configuration: checks dump config
etl/main.py - Migration orchestrator → Migration database access: uses database access
etl/main.py - Migration orchestrator → Customer migration phase: runs migration phase
etl/main.py