How rodri1988/proyecto-municipalidad-valle-del-sol works
SIGI is a municipal emergency-prevention and response platform. Residents and municipal staff register or sign in, submit incident reports (including photos), and use role-specific views; operators validate and prioritize reports and assign them to response teams, while administrators monitor incidents and manage users. The frontend also provides employment notices, activities, and profile features. The tree shows the frontend plus gateway and Eureka entry points, but not the backend microservice implementations; their internal routing and persistence are therefore not mapped.
Main entry points: apiClient.js HTTP API client · Dashboard.jsx Operations dashboard · App.jsx App routing · reporteService.js Report operations
Components 19
Access and navigation
- App routing
Sigi_Front/src/App.jsx - Authentication state
Sigi_Front/src/context/AuthContext.jsx - Sign-in and registration
Sigi_Front/src/pages/Register.jsx
Incident response
- Submit incident report
Sigi_Front/src/pages/NuevoReporte.jsx - Photo and media upload
Sigi_Front/src/services/mediaService.js - Report operations
Sigi_Front/src/services/reporteService.js - Operations dashboard
Sigi_Front/src/pages/Dashboard.jsx - Response team panel
Sigi_Front/src/pages/DashboardEquipo.jsx - Emergency management
Sigi_Front/src/services/emergenciaService.js - Incident map
Sigi_Front/src/components/MapaIncidentes.jsx
Municipal services
- Employment notices
Sigi_Front/src/services/empleoService.js - Municipal activities
Sigi_Front/src/pages/Actividades.jsx - User administration
Sigi_Front/src/services/usuarioService.js - Profile management
Sigi_Front/src/pages/Perfil.jsx
Platform integration
- HTTP API client
Sigi_Front/src/services/apiClient.js - API gateway
api-gateway/src/main/java/com/municipalidad/gateway/ApiGatewayApplication.java - JWT request filter
api-gateway/src/main/java/com/municipalidad/gateway/config/JwtAuthFilter.java - Service discovery
eureka-server/src/main/java/com/municipalidad/eureka/EurekaServerApplication.java
Other components
- Residents and staff
Connections 23
- Residents and staff → App routing: use platform
README.md - App routing → Authentication state: provides auth
Sigi_Front/src/App.jsx - App routing → Sign-in and registration: routes to
Sigi_Front/src/App.jsx - App routing → Submit incident report: routes to
Sigi_Front/src/App.jsx - Sign-in and registration → Authentication state: uses session
- Authentication state → HTTP API client: stores credentials
Sigi_Front/src/context/AuthContext.jsx - Submit incident report → Report operations: creates report
Sigi_Front/src/pages/NuevoReporte.jsx - Submit incident report → Photo and media upload: uploads photo
Sigi_Front/src/pages/NuevoReporte.jsx - Operations dashboard → Report operations: reviews reports
Sigi_Front/src/pages/Dashboard.jsx - Operations dashboard → Emergency management: loads emergencies
Sigi_Front/src/pages/Dashboard.jsx - Operations dashboard → User administration: loads response staff
Sigi_Front/src/pages/Dashboard.jsx - Operations dashboard → Incident map: renders incidents
Sigi_Front/src/pages/Dashboard.jsx - Response team panel → Report operations: loads team reports
Sigi_Front/src/pages/DashboardEquipo.jsx - Report operations → HTTP API client: calls API
Sigi_Front/src/services/reporteService.js - Emergency management → HTTP API client: calls API
Sigi_Front/src/services/emergenciaService.js - User administration → HTTP API client: calls API
Sigi_Front/src/services/usuarioService.js - Employment notices → HTTP API client: calls API
Sigi_Front/src/services/empleoService.js - Municipal activities → Employment notices: uses local service
Sigi_Front/src/pages/Actividades.jsx - Profile management → User administration: updates profile
- Photo and media upload → HTTP API client: uploads media
- HTTP API client → API gateway: sends API requests
- API gateway → JWT request filter: uses filter
- API gateway → Service discovery: discovers services