TFA Farm OS - Agricultural operations management platform for TerraFerm Africa
# TFA Farm Operating System (FOS) - MVP
> **"Your boss is data"** β Building TerraFerm Africa's AI-powered farm operations digital twin
## π― Quick Start
```bash
# Clone and install
git clone
cd tfa-farm-os
npm install
# Setup environment
cp .env.example .env.local
# Edit .env.local with your Supabase + API keys
# Initialize database
npm run db:setup
# Run development server
npm run dev
# Deploy (Vercel)
npx vercel
```
## π Project Structure
```
tfa-farm-os/
βββ app/ # Next.js 14 App Router
β βββ (dashboard)/ # Dashboard routes
β β βββ layout.tsx # Dashboard shell
β β βββ page.tsx # Operations overview
β β βββ plots/ # Plot management
β β βββ activities/ # Activity logs
β β βββ alerts/ # Alert center
β β βββ reports/ # Reports & analytics
β βββ api/ # API routes (serverless)
β β βββ activities/ # Activity CRUD
β β βββ plots/ # Plot management
β β βββ ai/ # Claude AI processing
β β βββ webhooks/ # External integrations
β β βββ dashboard/ # Dashboard data
β βββ field/ # Field worker PWA
β β βββ layout.tsx # Mobile-optimized layout
β β βββ page.tsx # Daily check-in
β β βββ tasks/ # Task management
β βββ globals.css # Tailwind + custom styles
β βββ layout.tsx # Root layout
βββ components/ # React components
β βββ ui/ # shadcn/ui components
β βββ dashboard/ # Dashboard-specific
β β βββ KPICard.tsx # Metric cards
β β βββ AlertBanner.tsx # Alert display
β β βββ ActivityTimeline.tsx # Activity feed
β β βββ MapView.tsx # Mapbox integration
β βββ field/ # Field app components
β β βββ VoiceRecorde β¦