| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Projet de Data Visualisation Interactive - Concours 2025
Portrait des Territoires de Corse est une application web interactive de data visualisation qui propose une analyse approfondie du territoire corse à travers 6 dimensions fondamentales :
Projet réalisé dans le cadre du Concours DataVis 2025, ce livre interactif 3D exploite les technologies web modernes pour offrir une expérience immersive de navigation dans les données territoriales.
┌─────────────────────────────────────────────────────────────┐
│ CLIENT (Browser) │
│ ┌────────────┐ ┌────────────┐ ┌─────────────────────┐ │
│ │ HTML5 │ │ CSS3 │ │ JavaScript │ │
│ │ Templates │ │ Styles │ │ (ES6 Modules) │ │
│ └────────────┘ └────────────┘ └─────────────────────┘ │
│ │ │
│ │ HTTP Requests │
│ ▼ │
└─────────────────────────────────────────────────────────────┘
│
│
┌──────────────────────────▼──────────────────────────────────┐
│ FLASK SERVER (Python) │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ app.py │ │
│ │ ┌────────────┐ ┌────────────┐ ┌────────────────┐ │ │
│ │ │ Routes │ │ API REST │ │ File System │ │ │
│ │ │ / │ │ /api/... │ │ Handler │ │ │
│ │ └────────────┘ └────────────┘ └────────────────┘ │ │
│ └──────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
│
│ File I/O
▼
┌─────────────────────────────────────────────────────────────┐
│ DATA STORAGE │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ data/ │ │
│ │ ├── logement/ │ │
│ │ │ ├── prix_construction.json │ │
│ │ │ └── logements_sociaux.json │ │
│ │ ├── education/ │ │
│ │ ├── transport/ │ │
│ │ └── ... │ │
│ └──────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
User Action → JavaScript Module → API Request → Flask Route
↓ ↓
DOM Update ← Response Processing ← JSON Response ← Data Processing
git clone https://github.com/votre-username/corse-datavis.git
cd corse-datavis# Windows
python -m venv venv
venv\Scripts\activate
# Linux/Mac
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txt# Créer les dossiers nécessaires
mkdir -p data/logement data/education data/transport data/sante data/seniors data/sport
# Placer vos fichiers JSON dans les dossiers appropriés# Créer un fichier .env (optionnel)
cp .env.example .env
# Éditer .env avec vos paramètres
FLASK_ENV=development
FLASK_DEBUG=True
DATA_PATH=./datapython app.pyhttp://localhost:5000
# 1. Activer l'environnement virtuel
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
# 2. Lancer le serveur
python app.py
# 3. Ouvrir le navigateur
# http://localhost:5000Page d'Accueil
Livre 3D Interactif
Page Sources
| Touche | Action |
|---|---|
| → | Page suivante |
| ← | Page précédente |
| Home | Première page |
| End | Dernière page |
| F | Mode plein écran |
| Esc | Quitter plein écran |
corse-datavis/
├── app.py # Application Flask principale
├── requirements.txt # Dépendances Python
├── README.md # Ce fichier
├── .env.example # Variables d'environnement
├── .gitignore # Fichiers à ignorer
│
├── data/ # Données sources (JSON)
│ ├── logement/
│ │ ├── prix_construction.json
│ │ └── logements_sociaux.json
│ ├── education/
│ │ ├── annuaire.json
│ │ └── personnel.json
│ ├── transport/
│ ├── sante/
│ ├── seniors/
│ └── sport/
│
├── templates/ # Templates HTML
│ └── index.html # Page principale
│
└── static/ # Ressources statiques
├── style.css # Styles généraux
├── home.css # Page d'accueil
├── source.css # Page sources
├── introduction.css # Page introduction
├── conclusion-page.css # Page conclusion
├── logement.css # Dashboard logement
├── emploi.css # Dashboard emploi
├── education.css # Dashboard éducation
├── transport.css # Dashboard transport
├── senior.css # Dashboard seniors
├── sport.css # Dashboard sport
│
├── main.js # Script principal
├── sources.js # Gestion sources
├── introduction.js # Page introduction
├── conclusion-page.js # Page conclusion
├── logement.js # Dashboard logement
├── emploi.js # Dashboard emploi
├── education.js # Dashboard éducation
├── transport.js # Dashboard transport
├── senior.js # Dashboard seniors
└── sport.js # Dashboard sport
Récupère l'arborescence complète des fichiers
Réponse
{
"tree": {
"name": "data",
"type": "folder",
"children": [...]
},
"stats": {
"folders": 6,
"files": 25,
"totalSize": 15728640
}
}Télécharge un fichier spécifique
Exemple
curl http://localhost:5000/api/sources/download/logement/prix.json -OPrévisualise le contenu d'un fichier
Réponse
{
"type": "json",
"content": {...}
}Recherche des fichiers par nom
Paramètres
Exemple
curl "http://localhost:5000/api/sources/search?q=logement"Statistiques globales des fichiers
Réponse
{
"totalFolders": 6,
"totalFiles": 25,
"totalSize": 15728640,
"byExtension": {
".json": {
"count": 25,
"size": 15728640
}
}
}Télécharge tous les fichiers en ZIP
Exemple
curl http://localhost:5000/api/sources/download-all -o sources.zipVérifie que l'API fonctionne
Réponse
{
"status": "ok",
"dataPath": "./data",
"dataPathExists": true
}| Source | Description | Format |
|---|---|---|
| INSEE | Statistiques démographiques, économiques et sociales | JSON |
| Data.gouv.fr | Données publiques françaises | JSON/CSV |
| Collectivité de Corse | Données territoriales locales | JSON |
| Ministère de la Santé | Annuaire des professionnels de santé | JSON |
| Ministère de l'Éducation | Établissements scolaires | JSON |
| Ministère de la Transition Écologique | Environnement, déchets | JSON |
Les contributions sont les bienvenues ! Voici comment participer :
Ouvrez une issue avec :
Ce projet est sous licence MIT - voir le fichier LICENSE pour plus de détails.
MIT License Copyright (c) 2025 [Votre Nom] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[Votre Nom] - Développeur Principal
Pour toute question ou assistance :
Fait avec ❤️ en Corse 🏝️
| Back | FazBrowse Home | New Git URL |