Real-time disaster risk detection for any city worldwide. Built with FastAPI + Leaflet.js.
1# 1. Clone
2git clone https://github.com/YOUR_USERNAME/stormsense
3cd stormsense
4
5# 2. Install
6pip install -r requirements.txt
7
8# 3. Set API key
9export OPENWEATHER_API_KEY=your_key_here
10# Get free key from: https://openweathermap.org/api
11
12# 4. Run
13uvicorn app:app --reload --port 8000
14
15# 5. Open browser
16# http://localhost:8000
1# Install git-lfs
2git lfs install
3
4# Clone your new Space
5git clone https://huggingface.co/spaces/YOUR_USERNAME/stormsense
6cd stormsense
7
8# Copy all project files into this folder
9cp -r /path/to/flood-heatwave-app/* .
10
11# Push
12git add .
13git commit -m "Initial deploy"
14git push
stormsense/
├── app.py # FastAPI backend + risk algorithms
├── requirements.txt # Python dependencies
├── Dockerfile # Container for HF Spaces
├── README.md # This file (also HF Space card)
├── templates/
│ └── index.html # Full frontend (HTML/CSS/JS)
└── static/
├── sw.js # Service Worker (offline/PWA)
├── manifest.json # PWA manifest
├── icon-192.png # App icon
└── icon-512.png # App icon