This repository was converted to a Python-first implementation. The React/Vite frontend was removed and replaced with a minimal Flask app that renders the map and risk indicators server-side and uses a small client script for interactivity.
Quick start (Windows):
- Create and activate a virtual environment
python -m venv .venv
.\.venv\Scripts\Activate.ps1- Install dependencies
pip install -r backend\requirements.txt- Run the app
python backend\app.pyOpen http://127.0.0.1:5000/ in your browser.
Notes
- The backend code lives in
backend/. - Risk calculation logic is in
backend/utils/risk.py. - Mock beach data is in
backend/data/beaches.py. - The interactive map uses Leaflet via a small client script at
backend/static/js/map.js.
If you want the original React/Vite frontend restored, I can keep it in an archive/ folder instead of deleting it.