Logo Lanfrica

JosueTW/tfa-farm-os-mvp

Domain:

agriculture

Record type:

software
Creator:
Jos
Host:
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 …