Skip to content

Agriculture Management System: A MERN stack-based platform enabling farmers to rent equipment, browse products, access crop care advice, and track sales through a farmer dashboard, with multi-language support and secure payments via Razorpay.

Notifications You must be signed in to change notification settings

anjali76Codes/Agriculture_Management_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

AgriCircle - Agriculture Management System

AgriCircle is a modern Agriculture Management System that enables farmers to rent equipment, browse products, access weather forecasts, and receive crop care advice. The system supports multi-language accessibility and secure payment options.


Features

  • Equipment Rental: Farmers can browse and rent equipment.
  • Product Browsing: Explore and purchase agricultural products.
  • Crop Care Advice: Uses Gemini API for image-based crop analysis.
  • Weather Forecasting: Get current day weather and 5-day forecasts with OpenWeatherMap API.
  • Farmer Dashboard: Includes sales tracking, reviews, and product management.
  • Multi-Language Support: Available in Hindi, Marathi, and English.
  • Secure Payments: Integrated Razorpay for secure payment processing.

Installation Guide

Prerequisites

  • Node.js (v14 or later)
  • MongoDB (Local or Cloud Instance)
  • Razorpay API Key
  • OpenWeatherMap API Key
  • Gemini API Key

Backend Setup

  1. Initialize the Project
    mkdir backend
    cd backend
    npm init -y
    
  2. Install Dependencies
npm install express mongoose dotenv cors jsonwebtoken bcrypt bcryptjs
npm install --save-dev nodemon

Create Necessary Folders

mkdir controllers routes models config

Add Scripts to package.json

  • Update the scripts section:
```bash
"scripts": {
    "start": "node index.js",
    "dev": "nodemon index.js"
}


Run the Server

npm run dev

Frontend Setup

Initialize the Project

mkdir frontend
cd frontend
npm create vite@latest .

Install Additional Dependencies

npm install react-datepicker chart.js react-chartjs-2 firebase
Run the Frontend
npm start

API Integrations Current Day Weather API

https://api.openweathermap.org/data/2.5/weather?lat={latitude}&lon={longitude}&appid={your_api_key}
5-Day Weather Forecast API
https://api.openweathermap.org/data/2.5/forecast?lat={latitude}&lon={longitude}&appid={your_api_key}

Gemini API for Crop Advice

  • Integrated to analyze crop health based on image uploads.

About

Agriculture Management System: A MERN stack-based platform enabling farmers to rent equipment, browse products, access crop care advice, and track sales through a farmer dashboard, with multi-language support and secure payments via Razorpay.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •