AI-powered crop disease detection and agricultural education platform for African students and smallholder farmers
# AgriLet
**AI-powered crop disease detection and agricultural education platform for African students and smallholder farmers.**
Built to democratize agricultural knowledge through technology.
## Features
- **Disease Detection** — Upload crop images for AI-powered disease identification with severity scoring, treatment recommendations, and prevention strategies
- **Learning Modules** — 6 structured courses (13 lessons) covering crop diseases, prevention, treatment, seasonal care, soil health, and pest management
- **Community Data** — Collaborative knowledge base where students contribute image labels, verifications, and field observations
- **Data Packs** — Downloadable datasets on regional crops, seasonal disease patterns, and treatment guidelines
- **Progress Tracking** — Per-module completion tracking with learning analytics
## Tech Stack
**Frontend:** React 18, TypeScript, Vite, Tailwind CSS, Lucide Icons
**Backend:** Node.js, Express, TypeScript, Prisma ORM, SQLite
**Auth & Security:** JWT, bcryptjs, Helmet, Zod validation, Multer (image uploads)
## Getting Started
```bash
# Backend
cd backend
npm install
npm run db:push
npm run db:seed
npm run dev
# Frontend
cd project
npm install
npm run dev
```
## Disease Database
| Disease | Severity | Affected Crops |
|---------|----------|----------------|
| Leaf Spot | Medium | Tomato, Maize, Groundnut, Tobacco |
| Late Blight | Critical | Tomato, Potato, Pepper |
| Powdery Mildew | Medium | Cucumber, Squash, Pumpkin, Wheat |
| Rust Disease | High | Wheat, Maize, Soybean, Bean |
| Bacterial Wilt | Critical | Tomato, Potato, Tobacco, Pepper |
| Maize Streak Virus | High | Maize, Sorghum, Millet |
| Fall Armyworm | High | Maize, Sorghum, Rice, Wheat |
## Project Structure
```
agrilet/
├── backend/
│ ├── src/
│ │ ├── index.ts # Express server
│ │ ├── seed.ts # Demo data seeding
│ │ ├── middleware/ # Auth & error handling
│ │ └── routes/ # …