Community-powered live flood alerts, flood risk zones, and traffic reports across Ghana
# FloodWatch Ghana π
> Community-powered live flood alerts, flood risk zones, and traffic reports across Ghana.
**Live site:** floodwatch-ghana.netlify.app
---
## Features
- πΊ **Interactive map** β real GPS-accurate pins for flooded areas, flood-risk zones, and traffic jams across Ghana
- π **My location** β detects your position and shows nearby incidents within 10km
- β
**Upvote reports** β confirm incidents reported by other community members
- π€ **AI assistant** β Claude-powered chat that knows all live reports and answers questions like *"Is the road through Lapaz safe?"*
- π§ **Ghana Met integration** β pulls live rainfall data from Open-Meteo for real-time weather alerts
- π’ **Report incidents** β submit flooded areas, risk zones, or traffic jams with severity levels
---
## Tech stack
| Layer | Technology |
|---|---|
| Map | Leaflet.js + CartoDB tiles |
| Weather | Open-Meteo API (free, no key needed) |
| AI chat | Anthropic Claude API |
| Hosting | Netlify (static) |
| Language | Vanilla HTML/CSS/JS β zero build step |
---
## Deploy in 60 seconds
### Option A β Netlify (recommended)
1. Fork this repo
2. Go to netlify.com β **Add new site** β **Import from Git**
3. Select your fork β Netlify auto-detects `netlify.toml`
4. Click **Deploy** β done
### Option B β GitHub Pages
1. Fork this repo
2. Go to repo **Settings** β **Pages**
3. Source: **Deploy from branch** β `main` β `/ (root)`
4. Your site will be live at `
yourusername.github.io`
### Option C β Run locally
```bash
git clone
github.com
cd floodwatch-ghana
# Open index.html in your browser β no build step needed
open index.html
```
---
## Project structure
```
floodwatch-ghana/
βββ index.html # Main app shell
βββ style.css # All styles
βββ data.js # Seed report data + coordinate lookup
βββ map.js # Leaflet map + markers
βββ app.js # Sidebar, filters, upvoting, modal
βββ cha β¦