Initial Design
# Kenya Climate Resilience Dashboard (KCRD)
The Kenya Climate Resilience Data Hub is a web-based decision-support tool designed to empower Kenyan frontline decision-makers, policymakers, and community leaders with real-time, actionable environmental insights.
This platform directly addresses the Triple Planetary Crisis — Climate Change, Biodiversity Loss, and Pollution & Waste — by integrating data from public and institutional sources into an interactive, location-based interface.
Through predictive analytics, data visualizations, and risk alerts, the dashboard enables users to:
* Monitor climate trends across counties, sub-counties, and wards.
* Track pollution levels and emerging environmental threats.
* Receive location-specific actionable insights for immediate intervention.
* Support long-term climate adaptation and environmental resilience strategies.
## 🏗️ Architecture
This project follows a **microservices architecture** with the following components:
- **Frontend**: Next.js 14 with TypeScript and Tailwind CSS
- **Backend API**: Node.js/Express.js REST API
- **Data Processor**: Background service for data ingestion and processing
- **Database**: PostgreSQL with PostGIS for spatial data
- **Cache**: Redis for session and data caching
- **Reverse Proxy**: Nginx for load balancing and SSL termination
- **Monitoring**: Prometheus and Grafana for observability
## 🚀 Quick Start
### Prerequisites
- Node.js 18+
- Docker and Docker Compose
- Git
### Local Development Setup
1. **Clone the repository**
```bash
git clone
cd Kenya-Resilience-Data-Hub-Team-18-Climate-Champs
```
2. **Copy environment variables**
```bash
cp env.example .env
# Edit .env with your configuration
```
3. **Start with Docker Compose**
```bash
# Build and start all services
docker-compose up -d
# View logs
docker-compose logs -f
# Stop services
docker-compose down
```
4. **Access the application**
- Frontend:
localhost
- API:
localhost
- Grafana:
lo …