AgriLink Rwanda — a multi-vendor agricultural marketplace connecting Rwandan farmers directly with consumers. Built with PHP, MySQL, and Bootstrap 5 for EWA408510 (E-Commerce and Web Application).
# AgriLink Rwanda 🌾
**A Smart Digital Marketplace for Farmers and Consumers**
AgriLink Rwanda is a multi-vendor agricultural e-commerce platform that connects local Rwandan farmers directly with consumers. Farmers register, list their own produce, and manage their own orders; consumers browse products from many different farms, add items to a single cart, and check out in one transaction — even when the order spans multiple farmers.
Built for **EWA408510 — E-Commerce and Web Application**, Faculty of Computing and Information Sciences, University of Lay Adventists of Kigali (UNILAK).
🔗 **Live app:**
agrilink-rwanda.onrender.com
🔗 **GitHub repo:**
github.com
> Note: the live app runs on Render's free tier, which spins down after periods of inactivity. The first request after a period of inactivity may take 30–60 seconds to respond while the instance wakes up.
---
## Features
- **Three user roles:** Consumer, Farmer, Admin
- **Multi-vendor marketplace:** each product belongs to a specific farmer; a single cart/order can contain products from several farmers, and is automatically split into per-farmer line items for independent fulfillment
- **Product catalog:** categories, search, filtering by category/district, sorting by price
- **Shopping cart:** add/update/remove items, automatic totals
- **Checkout:** customer details, order summary, stock validation, order confirmation with a unique order number
- **Farmer dashboard:** manage own products (create/edit/delete), view and update status of incoming orders, basic sales stats
- **Admin dashboard:** platform-wide stats, farmer approval, category management, recent orders overview
- **Security:** password hashing (bcrypt via `password_hash`), prepared statements (PDO) everywhere, server-side input validation, session-based auth with role checks
## Tech Stack
| Layer | Technology |
|------------------|-------- …