A web app that scores any property's flood and wildfire risk using real climate data APIs and AI-generated explanations.
IRVINEHACKS-PROJECT/
├── backend/
│ ├── main.py ← Nivedha (Melissa) + Sristi (FEMA/CalFire)
│ ├── risk_scorer.py ← Angie — scoring formula
│ ├── ai_service.py ← Cathryn — Gemini AI
│ ├── .env ← API keys
│ └── requirements.txt
├── frontend/
│ ├── index.html
│ ├── style.css
│ └── app.js
└── .gitignore
git clone https://github.com/your-org/your-repo.git
cd your-repocd backend
python -m venv venvActivate it:
- Mac/Linux:
source venv/bin/activate - Windows:
venv\Scripts\activate
pip install -r requirements.txtInside /backend, create a file called .env:
MELISSA_KEY=get_this_from_team
GEMINI_KEY=get_your_own_free_key
🔑 Gemini key (Cathryn): get it free at https://aistudio.google.com → "Get API Key"
🔑 Melissa key: get it from your teammate, everyone shares one
uvicorn main:app --reloadTest at http://localhost:8000 — should see {"message": "ClimateCheck API is running!"}
http://localhost:8000/risk?address=123 Main St, Irvine CA
Just open frontend/index.html directly in your browser. No extra server needed.
You (risk_scorer.py):
python risk_scorer.py
# should print {"flood": 90, "fire": 90, "overall": 90}Cathryn (ai_service.py):
python ai_service.py
# should print a JSON with explanation, recommendations, probabilitiesNivedha + Sristi (main.py functions):
Run the server and hit the /risk endpoint in your browser.
Work on your own branch — never commit directly to main:
git checkout -b feature/your-name-task
# do your work...
git add .
git commit -m "describe what you did"
git push origin feature/your-name-task
# open a Pull Request on GitHub to merge into main- Never commit
.env— share keys over Discord/text - Always activate venv before running anything:
source venv/bin/activate - Backend runs on port 8000, frontend is just a static HTML file
- If you get a CORS error, make sure the backend server is running first