Learn how to set up and use Agroflow for smart farming with IoT, blockchain, and AI.
# Clone the repository git clone https://github.com/Devvaibhavpk/Agroflow.git cd Agroflow # Install dependencies npm install # Copy environment template cp .env.local.example .env.local # Add your keys to .env.local # NEXT_PUBLIC_SUPABASE_URL=your_url # NEXT_PUBLIC_SUPABASE_ANON_KEY=your_key # GEMINI_API_KEY=your_gemini_key # Run development server npm run dev
/supabase folder:setup.sql - Core tablesblockchain_tables.sql - NFT/blockchain tablessample_data.sql - Demo data.env.local| Variable | Description | Required |
|---|---|---|
| NEXT_PUBLIC_SUPABASE_URL | Your Supabase project URL | ✅ Yes |
| NEXT_PUBLIC_SUPABASE_ANON_KEY | Supabase anonymous key | ✅ Yes |
| GEMINI_API_KEY | Google Gemini API key for chatbot | ✅ Yes |
| NEXT_PUBLIC_NFT_CONTRACT_ADDRESS | Deployed NFT contract address | Optional |