Simple, Intelligent Agricultural Assistant for Farmers
FarmAssist is a user-friendly web platform designed specifically for farmers to manage their crops effectively. Get week-by-week guidance, AI-powered solutions for farming issues, and access to agricultural knowledge - all in one simple interface.
Traditional farming relies on experience and trial-and-error. FarmAssist brings modern technology to farmers through:
- Simple Interface: Easy to use, designed with farmers in mind
- Week-by-Week Guidance: Clear action plans from sowing to harvest
- AI Solutions: Get location-specific advice for crop issues
- Government-Approved Resources: Access verified fertilizers and pesticides information
-
🌱 Crop Planning
- Select your crop, state, and season
- Enter sowing date and land area
- Get personalized timeline instantly
-
📅 Weekly Timeline
- See what to do each week
- Mark tasks as complete
- Add your own notes and observations
- Get product recommendations
-
🚨 Report Issues
- Report problems (pests, weather, diseases)
- Get expert-defined solutions
- Access AI-powered recommendations based on your location
- Regenerate solutions for different approaches
-
🤖 AI-Powered Help
- Location-aware advice
- Considers local climate and soil
- Works even without internet (fallback solutions)
- Available in simple language
-
📚 Knowledge Base
- Government-approved fertilizers
- Pesticides information
- Product prices and vendors
- Search easily
-
📊 Track Progress
- View all your crops in one place
- Monitor week-by-week progress
- Manage multiple crops
Frontend: React.js, Vite, CSS3
Backend: Node.js, Express.js, MongoDB
AI: Hugging Face Inference API (Free)
Security: JWT Authentication, bcrypt
- Node.js (v14+) - Download
- MongoDB - Local or MongoDB Atlas (free)
- Git (optional)
git clone https://github.com/itsgowtham14/farm-assist.git
cd farm-assist# Frontend
npm install
# Backend
cd server
npm install
cd ..- Install MongoDB or create free account on MongoDB Atlas
- Start MongoDB service (if local)
Create server/.env file:
MONGO_URI=mongodb://localhost:27017/farmassist
JWT_SECRET=your_secret_key_change_this
HUGGINGFACE_API_KEY=your_key_here_optional
PORT=5000Note: Hugging Face API key is optional - the system works with fallback solutions!
Terminal 1 - Backend:
cd server/src
nodemon server.jsTerminal 2 - Frontend:
npm run devOpen browser: http://localhost:5173
- Vercel account (free) - Sign up
- MongoDB Atlas account - Create free cluster
- GitHub account with your repository
- Go to Vercel Dashboard
- Click "Add New" → "Project"
- Import your GitHub repository
- Set Root Directory to
server - Add Environment Variables:
MONGO_URI=your_mongodb_atlas_connection_string JWT_SECRET=your_strong_random_secret HUGGINGFACE_API_KEY=your_key_optional NODE_ENV=production FRONTEND_URL=https://your-frontend-app.vercel.app - Click "Deploy"
- Copy your backend URL (e.g.,
https://farm-assist-api.vercel.app)
- Update
.envfile with backend URL:VITE_API_URL=https://your-backend-app.vercel.app/api - Commit and push to GitHub
- Go to Vercel Dashboard
- Click "Add New" → "Project"
- Import the same repository
- Set Root Directory to
.(root) - Add Environment Variable:
VITE_API_URL=https://your-backend-app.vercel.app/api - Click "Deploy"
After frontend is deployed, update backend environment variable:
FRONTEND_URL=https://your-actual-frontend-url.vercel.app
Important Notes:
- Backend and frontend are deployed as separate projects
- MongoDB Atlas IP whitelist: Add
0.0.0.0/0for Vercel access - Keep
.envfiles safe - never commit them to GitHub
- Register/Login - Create your account
- Select Crop - Choose state, season, crop, and sowing date
- View Timeline - See week-by-week tasks
- Report Issues - Get help when problems occur
- Track Progress - Mark weeks complete, add notes
The system includes an admin panel for agricultural experts to:
- Add crops, states, and timeline tasks
- Define common farming issues and solutions
- Manage fertilizer/pesticide database
- Provide week-specific guidance
Admin Access: admin@outlook.in / admin123
- Automatic logout after 10 minutes of inactivity
- Secure JWT-based authentication
- Separate sessions for farmers and administrators
For help, feedback, or suggestions:
📧 Email: 231fa04094@vignan.ac.in
We can help with:
- Login/password issues
- Feature requests
- Bug reports
- Suggestions for improvement
Developed by:
[Your Name]
Roll Number: 231FA04094
Vignan University
Project Guide: [Professor Name]
- Hugging Face - Free AI inference API
- MongoDB - Database solution
- React & Vite - Modern web development
- Indian Farmers - For inspiration
Developed as part of academic curriculum at Vignan University.
- ✅ Free for educational use
⚠️ Contact authors for commercial use- ✅ Modifications allowed with attribution
- Multi-language support (Hindi, Telugu, Tamil)
- Mobile app version
- Weather integration
- SMS notifications
- Offline mode
- Community forum
Happy Farming! 🌾🚜
Built with ❤️ for Indian Farmers