Connecting Tanzania's farmers to buyers directly.
# AgroLink Tanzania
**Jukwaa la Kisasa la Kilimo — Connecting Tanzania's Farmers to Buyers Directly.**
---
## Overview
AgroLink Tanzania is a production-grade agricultural marketplace platform built for Tanzanian farmers and buyers. It eliminates middlemen by enabling farmers to list crops directly, get AI-powered price intelligence, and connect with buyers across all 25 regions of Tanzania mainland.
Built mobile-first, designed specifically for smartphone users in Tanzania's farming communities.
---
## Features
- **Soko la Mazao** — Farmers post crop listings with photos, quantities, and prices. Buyers browse and contact sellers directly via phone or WhatsApp.
- **Bei ya AI** — Smart price prediction engine for 12 crops across all 25 Tanzania regions, with seasonal and regional market intelligence. Powered by a caching layer with 6-hour TTL.
- **Daktari wa Zao** — AI crop disease diagnosis via photo upload, powered by Gemini Vision AI.
- **AgroBot** — Kiswahili-first farming assistant chatbot with 200+ keyword coverage across 15+ crops.
- **Hali ya Hewa** — Real-time weather data for 20+ Tanzanian cities via OpenWeatherMap API, with 30-minute intelligent caching.
- **Seller Ratings** — Star-based trust system allowing buyers to rate sellers per listing — one rating per buyer per listing enforced at DB level.
- **Listing Reports** — Community moderation — users can report suspicious or fraudulent listings.
- **Farmer Directory** — Browse and search registered farmers by name or region.
- **User Authentication** — Secure registration, login, password change, and forgot password flows.
- **Admin Panel** — Platform administrators manage users, listings, and reports.
- **Futuristic UI** — Glassmorphism design with Sora font, Lucide icons, and a green-amber palette — fully responsive.
---
## Tech Stack
| Layer | Technology |
|---|---|
| Backend | Python 3.11, Flask 3.x |
| Database | PostgreSQL (Supabase) |
| ORM | SQLAlchemy + Flask-Migrate |
| Auth | F …