Logo Lanfrica

packam7/floodwatch-ghana

Domain:

environment and energy

Record type:

softwaretools
Creator:
pac
Host:
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 …