Enables SMS alert functionality for flood prediction notifications, with support for both production and mock modes for testing community alert systems.
AegisFlood (MVP)
AI-powered flood prediction and community alert system.
This repository contains a TypeScript React frontend and a FastAPI backend per the MVP scope:
Citizen registration and dashboard (risk view)
Authority dashboard (basic)
Simple prediction logic
SMS alerts via Twilio (mockable)
JWT auth with roles (citizen, authority)
Project Structure
Related MCP server: demo
Quick Start (Local)
Backend
Copy env
Start Postgres + API
API: http://localhost:8000, Docs: http://localhost:8000/docs
Frontend
App: http://localhost:5173
Security (MVP)
JWT with 24h expiry, role-based access control
Input validation via Pydantic schemas
CORS restricted via FRONTEND_ORIGIN
Env-based secrets, no secrets in code
Twilio credentials via env, optional mock mode
Notes
This is MVP scope only. Extended features are out-of-scope until requested.