How carlosmoreda/si-aom works
SI-AOM is a web application for managing customers, projects, budgets, production costs and cost forecasts. Users authenticate, then work through role-aware operational modules; the frontend sends requests to a FastAPI backend, which exposes domain APIs backed by PostgreSQL. Budget details and recorded costs support comparison and dashboard analysis, while a separate ML capability predicts costs. The graph preserves README capabilities and indexed modules; several backend routes and frontend modules were not excerpted, so their internal call paths are not asserted.
Main entry points: main.py FastAPI application · apiClient.js API client · DashboardPage.jsx Dashboard and modules · App.jsx Application shell
Components 23
Web application
- Application shell
frontend/src/App.jsx - Authentication
frontend/src/hooks/useAuth.js - Dashboard and modules
frontend/src/components/DashboardPage.jsx - Customer management
frontend/src/modules/ClientesModule.jsx - Budget management
frontend/src/modules/OrcamentosModule.jsx - Actual costs
frontend/src/modules/RealizadoModule.jsx - API client
frontend/src/services/apiClient.js
API and persistence
- FastAPI application
backend/app/main.py - Authentication routes
backend/app/routers/auth.py - Customer routes
backend/app/routers/clientes.py - Budget routes
backend/app/routers/orcamentos.py - Actual-cost routes
backend/app/routers/realizado.py - Database session
backend/app/database.py - PostgreSQL
Operational data
- Customer records
backend/app/models/cliente.py - Budget calculations
backend/app/services/orcamento_service.py
Analysis and forecasts
- Budget comparison
backend/app/services/comparacao_service.py - Operational dashboard
backend/app/routers/dashboard.py - ML prediction API
backend/app/routers/ml.py - ML forecasting
backend/app/services/ml_service.py - Budget dataset export
backend/app/etl/dataset.py - Random forest training
backend/app/ml/train_random_forest.py
Other components
- User
Connections 27
- User → Application shell: uses
README.md - Application shell → Authentication: loads session
frontend/src/App.jsx - Application shell → Dashboard and modules: renders
frontend/src/App.jsx - Authentication → API client: requests authentication
- Dashboard and modules → Customer management: renders
frontend/src/components/DashboardPage.jsx - Dashboard and modules → Budget management: renders
frontend/src/components/DashboardPage.jsx - Dashboard and modules → Actual costs: renders
frontend/src/components/DashboardPage.jsx - Customer management → API client: requests data
- Budget management → API client: requests data
- Actual costs → API client: requests data
- API client → FastAPI application: sends HTTP requests
README.md - FastAPI application → Authentication routes: registers
backend/app/main.py - FastAPI application → Customer routes: registers
backend/app/main.py - FastAPI application → Budget routes: registers
backend/app/main.py - FastAPI application → Actual-cost routes: registers
backend/app/main.py - FastAPI application → Operational dashboard: registers
backend/app/main.py - FastAPI application → ML prediction API: registers
backend/app/main.py - Customer routes → Customer records: reads and writes
backend/app/routers/clientes.py - Customer routes → Database session: uses session
backend/app/routers/clientes.py - Database session → PostgreSQL: connects to
backend/app/database.py - Budget routes → Budget calculations: delegates
backend/app/services/orcamento_service.py - Actual-cost routes → Budget comparison: supports comparison
- Operational dashboard → Budget comparison: summarizes costs
- ML prediction API → ML forecasting: delegates
- ML forecasting → Budget dataset export: uses dataset export
backend/app/services/ml_service.py - ML forecasting → Random forest training: uses training logic
backend/app/services/ml_service.py - Budget dataset export → Database session: queries data
backend/app/etl/dataset.py