How gaelschenck/mspr works
This is a French-language HIV data portal backed by a FastAPI service and a Vue client. Users authenticate, select a country cluster, then browse health indicators and country-specific dashboards; the portal also exposes prediction and ETL-management workflows. The backend uses SQLAlchemy models and database sessions, while the ETL normalizes source files into a local SQLite dataset. The README documents a broader PostgreSQL/PowerBI analytical model, but its SQL and source-data directories are absent from this tree. Some backend routes are unsampled, so those relationships are omitted.
Main entry points: api.js API client · index.js Route and access rules · main.py FastAPI routes · Login.vue Cluster login
Components 19
Web client
- Vue application
frontend/src/App.vue - Route and access rules
frontend/src/router/index.js - Cluster login
frontend/src/views/Login.vue - User token store
frontend/src/stores/userStore.js - API client
frontend/services/api.js - Health data views
frontend/src/components/HealthData.vue - Indicator dashboards
frontend/src/components/PopulationHiv.vue - Prediction views
frontend/src/components/TestPrediction.vue - ETL dashboard
frontend/src/components/ETLDashboard.vue - Privacy consent
frontend/src/components/RGPDConsent.vue
API service
- FastAPI routes
backend/main.py - Prediction engine
backend/prediction.py - Health data models
backend/models.py - API schemas
backend/schemas.py - SQL database sessions
backend/database.py
Data processing
- Health-data ETL
backend/NewETL/NewETL.py - Normalized SQLite data
backend/NewETL
Other components
- Portal user
- PowerBI analyst
Connections 23
- Portal user → Vue application: uses
frontend/src/App.vue - Vue application → Route and access rules: renders routes
frontend/src/App.vue - Route and access rules → Cluster login: routes to
frontend/src/router/index.js - Route and access rules → Health data views: routes to
frontend/src/router/index.js - Route and access rules → Indicator dashboards: routes to
frontend/src/router/index.js - Route and access rules → Prediction views: routes to
frontend/src/router/index.js - Route and access rules → ETL dashboard: routes to
frontend/src/router/index.js - Cluster login → API client: submits credentials
frontend/src/views/Login.vue - Cluster login → User token store: stores token
frontend/src/views/Login.vue - API client → FastAPI routes: sends HTTP requests
frontend/services/api.js - Health data views → API client: fetches indicators
frontend/src/components/HealthData.vue - Indicator dashboards → API client: fetches indicators
frontend/src/components/PopulationHiv.vue - Prediction views → API client: requests predictions
frontend/src/components/TestPrediction.vue - ETL dashboard → API client: manages ETL
frontend/src/components/ETLDashboard.vue - Privacy consent → API client: saves consent
frontend/src/components/RGPDConsent.vue - FastAPI routes → Health data models: queries models
backend/main.py - FastAPI routes → API schemas: validates responses
backend/main.py - FastAPI routes → SQL database sessions: opens sessions
backend/main.py - Health data models → SQL database sessions: uses ORM base
backend/models.py - FastAPI routes → Prediction engine: serves predictions
backend/main.py - FastAPI routes → Health-data ETL: runs ETL operations
backend/main.py - Health-data ETL → Normalized SQLite data: writes normalized data
backend/NewETL/NewETL.py - PowerBI analyst → Normalized SQLite data: analyzes exports