Shamba Link Platform
# 🌿 Shamba Link
**Shamba Link** is a next-generation agricultural marketplace and supply chain management platform connecting farmers, B2B buyers, and consumers.
## 🚀 Features
- **🌾 Farmer Portal**: Manage farm inventories, list produce, track sales, and handle bulk orders.
- **🛒 B2B Marketplace**: Direct trade platform with RFQ (Request for Quote) engine, escrow protection, and price negotiation.
- **💳 M-Pesa & PayHero Integration**: Seamless mobile money payment processing.
- **🌐 Offline-First & Sync**: IndexedDB offline storage with CRDT automatic synchronization upon reconnection.
- **📊 Analytics & Developer Sandbox**: Real-time market metrics, inventory tracking, and API testing tools.
## 🛠️ Tech Stack
- **Frontend**: React 19, TypeScript, Tailwind CSS, Lucide React, Zustand, Motion
- **Backend/Database**: Supabase, Express.js
- **Build Tool**: Vite
## 💻 Local Setup & Development
1. **Install dependencies:**
```bash
npm install
```
2. **Configure Environment Variables:**
Copy `.env.example` to `.env` and fill in your Supabase and PayHero credentials.
3. **Start Development Server:**
```bash
npm run dev
```
4. **Build for Production:**
```bash
npm run build
```