How fistonuzabumwana/rcei-platform works
RCEI is a Rwanda clean-cooking policy decision platform. The main user workflow is viewing district baselines, configuring a subsidy scenario, reviewing projected impacts and forecasts, then exporting policy or research outputs. Its domain spans survey-data preparation, model training, API-backed district analysis and simulation, and interactive presentation. The README documents broader agricultural bioeconomy and carbon-finance capabilities. Backend implementation details are limited in the excerpts, so those connections rely on documented behavior rather than inspected endpoint code.
Main entry points: App.tsx Dashboard orchestration · MapView.tsx District map · main.py REST API · SimulationResults.tsx Impact results
Components 20
Policy dashboard
- Dashboard orchestration
frontend/src/App.tsx - District map
frontend/src/components/MapView.tsx - District leaderboard
frontend/src/components/DistrictLeaderboard.tsx - District explorer
frontend/src/components/DistrictMatrixTable.tsx - Subsidy controls
frontend/src/components/Simulator.tsx - Impact results
frontend/src/components/SimulationResults.tsx - Trajectory chart
frontend/src/components/ForecastChart.tsx - Methodology view
frontend/src/components/MethodologyModal.tsx - Theme toggle
frontend/src/components/ThemeToggle.tsx - Theme state
frontend/src/context/ThemeContext.tsx - District boundaries
frontend/public/rwanda_districts.geojson
Analysis API
- API client
frontend/src/services/api.ts - REST API
backend/app/main.py - District metrics
backend/app/data/processed/district_metrics.json - Trained model
backend/app/core/adoption_model.pkl
Data and modeling
- Survey preparation
backend/pipeline/clean_eicv.py - Model training
backend/pipeline/train_model.py
Policy outputs
- Research CSV export
frontend/src/services/csvExport.ts - Policy brief PDF
frontend/src/services/pdfExport.ts
Other components
- Policy user
Connections 20
- Policy user → Dashboard orchestration: uses
README.md - Dashboard orchestration → API client: requests data and simulations
frontend/src/App.tsx - API client → REST API: calls REST API
README.md - REST API → District metrics: serves district metrics
README.md - REST API → Trained model: uses for simulation
README.md - Dashboard orchestration → District map: renders
frontend/src/App.tsx - Dashboard orchestration → District leaderboard: renders
frontend/src/App.tsx - Dashboard orchestration → District explorer: renders
frontend/src/App.tsx - Dashboard orchestration → Subsidy controls: renders
frontend/src/App.tsx - Dashboard orchestration → Impact results: renders
frontend/src/App.tsx - Impact results → Trajectory chart: renders
frontend/src/components/SimulationResults.tsx - Dashboard orchestration → Methodology view: renders
frontend/src/App.tsx - Dashboard orchestration → Theme toggle: renders
frontend/src/App.tsx - Theme toggle → Theme state: uses
frontend/src/components/ThemeToggle.tsx - District map → Theme state: reads theme
frontend/src/components/MapView.tsx - District map → District boundaries: loads boundaries
frontend/src/components/MapView.tsx - Dashboard orchestration → Policy brief PDF: generates policy brief
frontend/src/App.tsx - Dashboard orchestration → Research CSV export: exports district data
frontend/src/App.tsx - Survey preparation → Model training: prepares model data
- Model training → Trained model: produces model