How geken02/sgpi-fondos-vie-reparaciones works
SGPI is a web system for managing TEC VIE-funded research proposals, from researcher submission through technical review, school approval, VIE validation, and final CIE resolution. Users work through role-specific React screens; the FastAPI backend exposes domain APIs backed by SQLAlchemy models. The README documents the six main modules and the institutional workflow; sampled source confirms API router registration, proposal persistence, and selected service/model relationships. Most domain routers and services were not sampled, so their internal calls are not asserted.
Main entry points: main.py FastAPI routers · propuesta_service.py Proposal formulation · App.jsx Role-based screens · api.js HTTP client
Components 18
User interface
- Role-based screens
05_Codigo_Fuente/frontend/src/App.jsx - HTTP client
05_Codigo_Fuente/frontend/src/services/api.js
API and identity
- FastAPI routers
05_Codigo_Fuente/backend/src/main.py - Authentication
05_Codigo_Fuente/backend/src/services/auth_service.py
Proposal workflow
- Proposal endpoints
05_Codigo_Fuente/backend/src/api/routers/investigador/propuestas.py - Proposal formulation
05_Codigo_Fuente/backend/src/services/investigador/propuesta_service.py - Vinculación review
05_Codigo_Fuente/backend/src/services/vinculacion/vinculacion_service.py - Technical evaluation
05_Codigo_Fuente/backend/src/services/comite_tecnico - School approval
05_Codigo_Fuente/backend/src/services/consejo_escuela - VIE validation
05_Codigo_Fuente/backend/src/services/vie - CIE resolution
05_Codigo_Fuente/backend/src/services/vie/miembro_cie_service.py - Research direction
05_Codigo_Fuente/backend/src/services/direccion_investigacion_service.py
Operations and records
- Proposal records
05_Codigo_Fuente/backend/src/models - System administration
05_Codigo_Fuente/backend/src/services/admin - Historical reports
05_Codigo_Fuente/backend/src/services/consulta_historica/reporte_service.py - Database session
05_Codigo_Fuente/backend/src/database.py - Document storage
05_Codigo_Fuente/backend/src/utils/s3_client.py
Other components
- Researcher
Connections 17
- Researcher → Role-based screens: submits proposal
- Role-based screens → HTTP client: uses HTTP client
- HTTP client → FastAPI routers: calls API
- FastAPI routers → Proposal endpoints: registers router
05_Codigo_Fuente/backend/src/main.py - FastAPI routers → Authentication: serves identity
- Proposal endpoints → Proposal formulation: handles formulation
- Proposal formulation → Proposal records: reads and writes
05_Codigo_Fuente/backend/src/services/investigador/propuesta_service.py - Proposal records → Database session: maps through Base
05_Codigo_Fuente/backend/src/models/propuestas.py - Proposal formulation → Vinculación review: advances to review
- Vinculación review → Technical evaluation: advances to committee
05_Codigo_Fuente/backend/src/services/vinculacion/vinculacion_service.py - Technical evaluation → School approval: advances to approval
- School approval → VIE validation: advances to validation
- VIE validation → CIE resolution: routes for resolution
- CIE resolution → Research direction: coordinates final stage
- FastAPI routers → System administration: registers admin routes
05_Codigo_Fuente/backend/src/main.py - FastAPI routers → Historical reports: registers report routes
- Proposal formulation → Document storage: stores documents