How nandoestebanif/sevens-sigro works
SIGRO is a construction-site resource management system with an office web client, an on-site Android app, a FastAPI backend, and separate integration and notification services. The core workflow is staff entering or managing project resources—such as purchases, stock movements, labor, and costs—through a client; the server applies authoritative permissions and balance rules and persists the resulting records. The README establishes the product boundaries and key invariants, while the sampled code shows some client entry points and service behavior. Many API routes and Android data flows were not sampled, so their internal call edges are omitted.
Main entry points: servicios Service layer · App.kt Site app · modulos API domain routes · main.py External integrations
Components 23
User clients
- Office web app
web/src/App.tsx - Office workflows
web/src/paginas - Web API client
web/src/api/http.ts - Site app
android/composeApp/src/commonMain/kotlin/pe/sevens/sigro/App.kt - Site workflows
android/composeApp/src/commonMain/kotlin/pe/sevens/sigro/ui/pantallas
Core API
- API domain routes
api/app/modulos - Access control
api/app/permisos.py - Service layer
api/app/servicios - API database
api/app/db.py
Resource domains
- Projects and access
api/app/modulos/obra - Resource catalog
api/app/modulos/catalogo - Purchasing
api/app/modulos/compras - Warehouse and stock
api/app/modulos/almacen - Labor and timesheets
api/app/modulos/tareo - Resource costs
api/app/modulos/costo
Side services
- External integrations
integraciones/main.py - S10 connector
integraciones/s10.py - Event outbox
api/app/modulos/outbox - Notifications service
notificaciones/main.py - Notification store
notificaciones/almacen.py
Mobile platform
- Device services
android/composeApp/src/commonMain/kotlin/pe/sevens/sigro/plataforma/Plataforma.kt
Other components
- Project staff
- Tax data providers
Connections 23
- Project staff → Office web app: uses office
- Project staff → Site app: uses on site
- Office web app → Office workflows: routes to
web/src/App.tsx - Office workflows → Web API client: requests data
web/src/paginas/Compras.tsx - Web API client → API domain routes: HTTP requests
- Site app → Site workflows: shows screens
android/composeApp/src/commonMain/kotlin/pe/sevens/sigro/App.kt - Site app → Device services: uses platform
- Site app → API domain routes: syncs records
- API domain routes → Access control: checks permissions
- API domain routes → Service layer: handles requests
- Service layer → API database: persists data
- Service layer → Projects and access: manages projects
- Service layer → Resource catalog: manages catalog
- Service layer → Purchasing: manages purchases
- Service layer → Warehouse and stock: manages stock
- Service layer → Labor and timesheets: manages labor
- Service layer → Resource costs: reports costs
- External integrations → Tax data providers: queries records
integraciones/main.py - External integrations → S10 connector: includes connector
integraciones/main.py - Service layer → External integrations: requests enrichment
- Service layer → Event outbox: queues events
- Event outbox → Notifications service: delivers events
notificaciones/main.py - Notifications service → Notification store: stores notices
notificaciones/main.py