AI-powered environmental intelligence platform for Africa that provides real-time analysis of flood risk, air quality, and land health.
# π ASASE β Environmental Intelligence Platform
**ASASE (Earth Intelligence)** is a Django-based platform providing real-time, AI-powered environmental risk analysis for African communities.
It focuses on **flood risk**, **air quality**, and **land health**, aligned with **UN SDG 15: Life on Land**.
π **Live Demo:** asase-app.onrender.com
---
## π Key Features
- **AI Environmental Reports** β Synthesizes satellite, weather, and terrain data from Open Weather API using Google Gemini.
- **Real-Time Risk Analysis** β Generates instant environmental scores for any African location.
- **Historical Archive** β Stores and displays past environmental reports.
- **Progressive Web App (PWA)** β Installable and usable offline.
- **Interactive Map Interface** β Built with Leaflet.js for intuitive visualization.
- **Optimized Performance** β Caching reduces API costs and response times.
---
## π§ Tech Stack
**Backend:** Django, PostgreSQL
**Frontend:** Django Templates, Tailwind CSS, HTMX, Leaflet.js
**AI & Data Sources:**
- Google Gemini (AI synthesis)
- OpenStreetMap (Geocoding)
- OpenWeatherMap (Weather data)
- Open-Meteo (Elevation data)
- NASA GIBS / Sentinel Hub (NDVI satellite data)
---
## βοΈ Environment Variables
```bash
GEMINI_API_KEY=
OPENWEATHER_API_KEY=
SECRET_KEY=
DEBUG=
```
## π§© Project Structure
```
asase_project/
βββ core/ # UI, routing, and static pages
βββ analysis/ # Real-time environmental analysis
βββ archive/ # Historical reports and data storage
βββ static/ # CSS, JS, images
βββ templates/ # Django templates
```
## ποΈ Database
PostgreSQL for production (supports JSONField for flexible storage)
SQLite for local development
## π‘ Development
Clone repository
```
git clone
github.com
cd Asase
```
Install dependencies
```
pip install -r requirements.txt
```
Run migrations and start server
```
python manage.py migrate
python manage.py runserver
```
π§ License
MIT License Β© 2025 Nwokike