/fairm

Primary LanguageTypeScript

FAIrm - Agentic AI-Powered Farming Assistantance

Check out the live website here

Table of Contents

Overview

FAIrm is a modern web application providing AI-powered assistance for farming operations, featuring:

  • 🌱 Intelligent crop planning
  • 📊 Effective Monitoring
  • 📅 Task management
  • 💬 AI chat assistance
  • 📈 Market insights
  • 👤 Profile management

Tech Stack

Category Technologies
Frontend Core React 18, TypeScript, Vite
Styling TailwindCSS, Radix UI
State Management Zustand, React Query
Backend FastAPI (Python), CrewAI, OpenAI
Database Supabase

Setup & Deployment

Local Development

# Install dependencies
npm install

# Start development server
npm run dev

# Start backend server
cd backend
pip install -r requirements.txt
uvicorn main:app --reload

Environment Variables

VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
VITE_API_URL=http://localhost:8000

Deployment Steps

Frontend

  1. Configure base URL in vite.config.ts:
export default defineConfig({
  base: '/fairm/',
  // ... other config
});
  1. Build and deploy:
npm run build
npm run deploy

Backend

  1. Environment setup:

    • Set Python version to 3.9
    • Configure OpenAI, SerperAPI credentials
  2. Build command:

pip install -r requirements.txt
  1. Start command:
uvicorn main:app --host 0.0.0.0 --port $PORT