Plateforme de Dimensionnement Solaire PVLIB ESRI PYTHON SENEGAL
# ☀️ SolarDim — Plateforme de Dimensionnement PV
**Bureaux d'études · Installateurs solaires · Ingénieurs énergie — Sénégal / Zone UEMOA**
> Plateforme web professionnelle de dimensionnement solaire photovoltaïque, style PVsyst, en FCFA/XOF.
---
## 🚀 Démarrage rapide
### Option 1 — 100% Gratuit (Static + Pyodide, zéro serveur)
```bash
cd frontend
npm install
npm run dev # →
localhost
```
### Option 2 — Avec backend FastAPI (pvlib complet)
```bash
# Backend
cd backend
pip install -r requirements.txt
uvicorn main:app --reload --port 8000
# Frontend (autre terminal)
cd frontend
npm install
npm run dev
```
### Option 3 — Docker (one-click)
```bash
docker-compose up -d
# Frontend:
localhost
# API:
localhost
# Docs API:
localhost
```
---
## 📁 Structure du projet
```
solarinterlplatform_newtech/
├── frontend/ # SPA HTML5/JS (Vite)
│ ├── index.html # Shell SPA complet (6 pages)
│ ├── src/
│ │ ├── css/main.css # Framework CSS (dark/light mode)
│ │ ├── js/
│ │ │ ├── app.js # Router SPA + orchestration
│ │ │ └── modules/
│ │ │ ├── tariff.js # 🏦 Moteur tarifaire SENELEC
│ │ │ ├── powerFactor.js # ⚡ Calcul P/Q/S/PF (Update A)
│ │ │ ├── energy.js # 📊 Analyse énergie Mode A/B
│ │ │ ├── map.js # 🗺️ Mapbox GL + calepinage
│ │ │ ├── simulation.js # ☀️ Simulation PV (PVGIS/local)
│ │ │ ├── equipment.js # 🔧 Catalogue + configurateur
│ │ │ ├── report.js # 📄 PDF style PVsyst 12 pages
│ │ │ ├── finance.js # 💰 ROI/VAN/TRI/CO2
│ │ │ └── storage.js # 💾 IndexedDB + auto-save
│ │ └── data/
│ │ ├── senelec_tariff.json # Grille tarifaire 2024
│ │ └── equipment_catalog_xof.json # 90+ équipements en FCFA
│ ├── package.json
│ └── vite.config.js
│
├── backend/ …