How martinerwan/property_purchase works
The repository combines a reproducible Île-de-France housing-data pipeline with a developing PWA for exploring neighborhoods, affordability, and commute times. The documented pipeline gathers and transforms DVF sales, transit, income, and QPV data, then exports map and app datasets. In the app, users load those datasets, filter and color IRIS areas, inspect neighborhood details, and compare travel times; optional account features synchronize preferences. Edges between pipeline stages reflect the README’s documented sequence. Some app modules were not sampled, so uncertain internal connections are omitted.
Main entry points: App.tsx PWA application · useSynchroCarte.ts Map synchronization · panneaux Map and filter panels · useSynchroCompte.ts Preference sync
Components 27
Data pipeline
- Download DVF
scripts/01_download_dvf.py - Clean sales
scripts/02_clean_dvf.py - Download transit
scripts/03_download_transports.py - Build transit
scripts/04_build_transports.py - Download socio data
scripts/05_download_socio.py - Build IRIS and QPV
scripts/06_build_iris_qpv.py - IRIS indicators
scripts/07_indicateurs_iris.py - Journey matrices
scripts/08_temps_trajet.py - GIS exports
scripts/09_export_carte.py - Interactive HTML map
scripts/10_carte_html.py - App data export
scripts/11_export_app.py - App data checks
scripts/12_controle_app.py
App data
- Data loader
app/src/donnees/chargement.ts - Shared resources
app/src/donnees/store.ts - App state
app/src/etat.ts
Map and analysis
- Map rendering
app/src/carte/couches.ts - Map synchronization
app/src/carte/useSynchroCarte.ts - Travel-time analysis
app/src/logique/trajet.ts - Neighborhood filters
app/src/logique/selection.ts - Financing estimates
app/src/logique/financement.ts
User interface
- PWA application
app/src/App.tsx - Map and filter panels
app/src/panneaux - Neighborhood details
app/src/panneaux/FicheQuartier.tsx
Accounts
- Account panel
app/src/panneaux/PanneauCompte.tsx - Preference sync
app/src/compte/useSynchroCompte.ts
Other components
- Data providers
- Supabase
Connections 29
- Data providers → Download DVF: provides sales
README.md - Data providers → Download transit: provides transit
README.md - Data providers → Download socio data: provides socio data
README.md - Download DVF → Clean sales: cleans sales
README.md - Clean sales → Download transit: next pipeline step
README.md - Download transit → Build transit: builds transit
README.md - Build transit → Download socio data: next pipeline step
README.md - Download socio data → Build IRIS and QPV: builds geography
README.md - Build IRIS and QPV → IRIS indicators: adds indicators
README.md - IRIS indicators → Journey matrices: next pipeline step
README.md - Journey matrices → GIS exports: exports layers
README.md - GIS exports → Interactive HTML map: builds HTML map
README.md - Interactive HTML map → App data export: exports app data
README.md - App data export → App data checks: checks publication
README.md - PWA application → Data loader: loads datasets
app/src/App.tsx - Data loader → Shared resources: returns data
app/src/App.tsx - PWA application → App state: initializes state
app/src/App.tsx - PWA application → Map synchronization: synchronizes map
app/src/App.tsx - Map synchronization → Map rendering: updates layers
app/src/carte/useSynchroCarte.ts - Map synchronization → Travel-time analysis: computes journeys
app/src/carte/useSynchroCarte.ts - Map synchronization → Neighborhood filters: builds filters
app/src/carte/useSynchroCarte.ts - Map synchronization → Financing estimates: calculates budgets
app/src/carte/useSynchroCarte.ts - PWA application → Map and filter panels: shows panels
app/src/App.tsx - PWA application → Neighborhood details: shows selected IRIS
app/src/App.tsx - Map and filter panels → Neighborhood filters: configures filters
app/src/panneaux/PanneauFiltres.tsx - Map and filter panels → Financing estimates: edits financing
app/src/panneaux/PanneauFinancement.tsx - Account panel → Preference sync: uses account features
- Preference sync → Supabase: reads and writes
app/src/compte/useSynchroCompte.ts - Preference sync → App state: syncs profile
app/src/compte/useSynchroCompte.ts