Skip to content

pradeep686/Smart-AgriConnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

169 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌾 SMART-AGRICONNECT

image

A unified digital platform designed to empower farmers through technology, providing tools for subsidy navigation, crop recommendations, digital marketplaces, farm management, and community engagement.


πŸ“Œ Table of Contents


🌾 Problem Statement

Challenge Impact
Unclear subsidy information Farmers miss financial benefits
No crop demand data Oversupply leading to low prices
Fragmented knowledge sharing Limited access to expert advice
Manual trading processes Inefficient market access
Outdated farm practices Reduced productivity

πŸ’‘ Solution

Five Integrated Modules:

  1. Subsidy Navigator - Real-time government scheme tracking
  2. Crop Oracle - AI-powered planting recommendations
  3. AgriMarket - Digital trading with escrow
  4. Farm Genius - IoT-ready management system
  5. Krishi Community - Verified expert Q&A platform

πŸ›  Tech Stack

Frontend

  • React 18+: Component-based UI
  • Vite: Fast build tool
  • Tailwind CSS: Utility-first styling
  • Axios: HTTP requests
  • React Router: Navigation

Backend

  • Node.js 16+: Runtime environment
  • Express: Web framework
  • Mongoose: MongoDB ORM
  • JWT: Authentication
  • Cloudinary: Media storage

DevOps

  • Docker: Containerization
  • GitHub Actions: CI/CD pipelines
  • ESLint: Code quality
  • Prettier: Code formatting

πŸ“‚ Project Structure

SMART-AGRICONNECT 🌱

SMART-AGRICONNECT/
β”‚
β”œβ”€β”€ admin/
β”‚   β”œβ”€β”€ node_modules/
β”‚   β”œβ”€β”€ public/
β”‚   β”‚   β”œβ”€β”€ assets/
β”‚   β”‚   └── index.html
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”œβ”€β”€ App.jsx
β”‚   β”‚   └── main.jsx
β”‚   β”œβ”€β”€ .dockerignore
β”‚   β”œβ”€β”€ Dockerfile
β”‚   β”œβ”€β”€ package.json
β”‚   └── vite.config.js
β”‚
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ config/
β”‚   β”‚   └── db.js
β”‚   β”œβ”€β”€ controllers/
β”‚   β”‚   β”œβ”€β”€ authController.js
β”‚   β”‚   └── subsidyController.js
β”‚   β”œβ”€β”€ models/
β”‚   β”‚   β”œβ”€β”€ User.js
β”‚   β”‚   └── Subsidy.js
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”œβ”€β”€ authRoutes.js
β”‚   β”‚   └── apiRoutes.js
β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   β”œβ”€β”€ cloudinary.js
β”‚   β”‚   └── jwt.js
β”‚   β”œβ”€β”€ .env
β”‚   β”œβ”€β”€ package.json
β”‚   └── server.js
β”‚
β”œβ”€β”€ user/
β”‚   β”œβ”€β”€ node_modules/
β”‚   β”œβ”€β”€ public/
β”‚   β”‚   └── index.html
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”œβ”€β”€ App.jsx
β”‚   β”‚   └── main.jsx
β”‚   β”œβ”€β”€ package.json
β”‚   └── vite.config.js

✨ Features

  • Admin Portal: User management and analytics
  • Farmer Dashboard: Integrated farming modules
  • API Services: Secure REST endpoints
  • Database: MongoDB with optimized schemas

πŸ›  Tech Stack

  • Frontend: React + Vite + Tailwind CSS
  • Backend: Node.js + Express
  • Database: MongoDB
  • Authentication: JWT
  • Media Storage: Cloudinary

πŸš€ Installation

# Clone repository
git clone https://github.com/yourusername/SMART-AGRICONNECT.git

# Install dependencies
cd SMART-AGRICONNECT/backend && npm install
cd ../frontend && npm install
cd ../admin && npm install

# Start development servers

# Backend
cd ../backend && npm start

# Frontend (in new terminal)
cd ../frontend && npm run dev

# Admin (in new terminal)
cd ../admin && npm run dev


- 🧩 New feature development  
- πŸ› Bug fixes  
- πŸ“ Documentation improvements  

πŸ”§ Environment Variables

Create a .env file in the backend/ directory with the following keys:

# Backend .env

PORT=5000
MONGO_URL=mongodb://localhost:27017/smartagri
JWT_SECRET=your_jwt_secret_key
CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret

🌟 Key Features

Module Innovation Factor
Subsidies Real-time tracking + application assistant
Crop Selection AI-powered cultivation trend analysis
Marketplace Escrow-based secure transactions
Farm Management IoT integration capability
Community Verified expert verification system

πŸ“Έ Screenshots

image image image image image image image image image image image


🀝 Contribute

We welcome contributions! Please fork the repository and submit pull requests (PRs) for:

  • 🧩 New feature development
  • πŸ› Bug fixes
  • πŸ“ Documentation improvements

πŸ“ MIT License

Β© 2025 Sukant C


πŸš€ Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights to:

  • βœ… Use
  • βœ… Copy
  • βœ… Modify
  • βœ… Merge
  • βœ… Publish
  • βœ… Distribute
  • βœ… Sublicense
  • βœ… Sell copies of the Software

and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

πŸ“œ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.


About

A Unified Digital Platform for Farmers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages