Skip to content

AgriTech is an AI-powered web platform that offers crop recommendations, yield prediction, disease detection, and collaborative tools to empower farmers and promote smart, sustainable agriculture.

Notifications You must be signed in to change notification settings

omroy07/AgriTech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

🌾 AgriTech Web Application

AgriTech is an innovative web platform designed to empower farmers and agricultural communities with AI-powered tools, real-time insights, and interactive collaboration features.


🎯 Quick Preview

Dashboard Overview

AgriTech Dashboard

Key Features in Action

Crop Recommendation Disease Detection Community Chat
Crop Recommendation GIF Disease Detection GIF Community Chat GIF

πŸš€ Getting Started

Prerequisites

  • Web browser (Chrome, Firefox, Safari, or Edge)
  • Local server (for full functionality)

Quick Setup

  1. Clone the repository
    git clone https://github.com/omroy07/AgriTech.git
    cd AgriTech

Run the application

Option A: Simple HTML Preview

# Open index.html in your browser
open index.html 

Option B: Local Server (Recommended)

# Using Python
python -m http.server 8000
Then visit http://localhost:8000

Using Node.js

# Or install live-server: npm install -g live-server
  • live-server

  • Access the application

  • Open your web browser

Navigate to http://localhost:8000 (or the port shown in terminal)
  • Start exploring AgriTech features!

For Development & Contribution

See our Contributing Guide for detailed setup instructions, coding standards, and pull request process.

🌟 Features

  • Crop Recommendation Get suggestions for the best crops to cultivate based on soil and weather conditions.

  • Yield Prediction Predict expected yields using advanced AI models tailored to different crop types.

  • Disease Prediction Early detection of plant diseases along with treatment and preventive measures.

  • Farmer Connection Connect with fellow farmers to share experiences, resources, and advice.

  • Shopkeeper Listings Discover local agricultural product and service providers.

File Structure

AgriTech/
β”œβ”€β”€ πŸ“ docs/ # Documentation files\
β”‚ β”œβ”€β”€ CONTRIBUTING.md
β”‚ β”œβ”€β”€ TROUBLESHOOTING.md
β”‚ β”œβ”€β”€ API_DOCUMENTATION.md
β”‚ └── SETUP_GUIDE.md
β”‚ β”œβ”€β”€ πŸ“ images/ # All images and visual assets
β”‚ β”œβ”€β”€ screenshots/
β”‚ β”‚ β”œβ”€β”€ dashboard.png
β”‚ β”‚ β”œβ”€β”€ crop-recommendation.png
β”‚ β”‚ β”œβ”€β”€ disease-detection.png
β”‚ β”‚ └── community-chat.png
β”‚ β”‚ β”‚ β”œβ”€β”€ gifs/ # Preview GIFs for README
β”‚ β”‚ β”œβ”€β”€ crop-recommendation.gif
β”‚ β”‚ β”œβ”€β”€ community-chat.gif
β”‚ β”‚ └── yield-prediction.gif
β”‚ β”‚ β”‚ β”œβ”€β”€ icons/
β”‚ β”‚ β”œβ”€β”€ favicon.ico
β”‚ β”‚ β”œβ”€β”€ logo.png
β”‚ β”‚ └── apple-touch-icon.png
β”‚ β”‚ β”‚ └── mockups/
β”‚ β”œβ”€β”€ mobile-view.png
β”‚ └── tablet-view.png
β”‚ β”œβ”€β”€ πŸ“ src/ # Main source code
β”‚ β”œβ”€β”€ πŸ“ frontend/
β”‚ β”‚ β”œβ”€β”€ index.html # Main entry point
β”‚ β”‚ β”œβ”€β”€ πŸ“ css/
β”‚ β”‚ β”‚ β”œβ”€β”€ style.css
β”‚ β”‚ β”‚ β”œβ”€β”€ components/
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ navbar.css
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ sidebar.css
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ cards.css
β”‚ β”‚ β”‚ β”‚ └── forms.css
β”‚ β”‚ β”‚ β”œβ”€β”€ pages/
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ dashboard.css
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ crop-recommendation.css
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ disease-detection.css
β”‚ β”‚ β”‚ β”‚ └── community.css
β”‚ β”‚ β”‚ └── responsive.css
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“ js/
β”‚ β”‚ β”‚ β”œβ”€β”€ app.js # Main application logic
β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“ modules/
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ auth.js
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ utils.js
β”‚ β”‚ β”‚ β”‚ └── animations.js
β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“ features/
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ crop-recommendation.js
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ yield-prediction.js
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ disease-detection.js
β”‚ β”‚ β”‚ β”‚ └── community-chat.js
β”‚ β”‚ β”‚ └── πŸ“ components/
β”‚ β”‚ β”‚ β”œβ”€β”€ navbar.js
β”‚ β”‚ β”‚ β”œβ”€β”€ modal.js
β”‚ β”‚ β”‚ └── charts.js
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“ assets/
β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“ fonts/
β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“ icons/ # SVG icons
β”‚ β”‚ β”‚ └── πŸ“ data/ # Sample data for demos
β”‚ β”‚ β”‚ β”‚ β”‚ └── πŸ“ pages/ # HTML pages for different features
β”‚ β”‚ β”œβ”€β”€ dashboard.html
β”‚ β”‚ β”œβ”€β”€ crop-recommendation.html
β”‚ β”‚ β”œβ”€β”€ yield-prediction.html
β”‚ β”‚ β”œβ”€β”€ disease-detection.html
β”‚ β”‚ β”œβ”€β”€ community.html
β”‚ β”‚ β”œβ”€β”€ shopkeepers.html
β”‚ β”‚ └── plantation-guide.html
β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“ backend/ # Backend server code
β”‚ β”‚ β”œβ”€β”€ app.py # Flask main application
β”‚ β”‚ β”œβ”€β”€ requirements.txt
β”‚ β”‚ β”œβ”€β”€ πŸ“ routes/
β”‚ β”‚ β”‚ β”œβ”€β”€ auth_routes.py
β”‚ β”‚ β”‚ β”œβ”€β”€ crop_routes.py
β”‚ β”‚ β”‚ β”œβ”€β”€ disease_routes.py
β”‚ β”‚ β”‚ β”œβ”€β”€ yield_routes.py
β”‚ β”‚ β”‚ └── community_routes.py
β”‚ β”‚ β”œβ”€β”€ πŸ“ models/
β”‚ β”‚ β”‚ β”œβ”€β”€ user_model.py
β”‚ β”‚ β”‚ β”œβ”€β”€ crop_model.py
β”‚ β”‚ β”‚ β”œβ”€β”€ disease_model.py
β”‚ β”‚ β”‚ └── database.py
β”‚ β”‚ β”œβ”€β”€ πŸ“ ml_models/ # AI/ML model files
β”‚ β”‚ β”‚ β”œβ”€β”€ crop_recommendation/
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ model.pkl
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ train_model.py
β”‚ β”‚ β”‚ β”‚ └── preprocessing.py
β”‚ β”‚ β”‚ β”œβ”€β”€ yield_prediction/
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ model.h5
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ train_model.py
β”‚ β”‚ β”‚ β”‚ └── data_processing.py
β”‚ β”‚ β”‚ └── disease_detection/
β”‚ β”‚ β”‚ β”œβ”€β”€ model.h5
β”‚ β”‚ β”‚ β”œβ”€β”€ train_model.py
β”‚ β”‚ β”‚ └── image_processing.py
β”‚ β”‚ β”œβ”€β”€ πŸ“ utils/
β”‚ β”‚ β”‚ β”œβ”€β”€ helpers.py
β”‚ β”‚ β”‚ β”œβ”€β”€ validators.py
β”‚ β”‚ β”‚ └── constants.py
β”‚ β”‚ └── πŸ“ config/
β”‚ β”‚ β”œβ”€β”€ database.py
β”‚ β”‚ └── settings.py
β”‚ β”‚ β”‚ └── πŸ“ database/ # Database related files
β”‚ β”œβ”€β”€ schema.sql
β”‚ β”œβ”€β”€ sample_data.sql
β”‚ └── migrations/
β”‚ β”œβ”€β”€ πŸ“ tests/ # Test files
β”‚ β”œβ”€β”€ πŸ“ frontend/
β”‚ β”‚ β”œβ”€β”€ unit/
β”‚ β”‚ └── integration/
β”‚ β”œβ”€β”€ πŸ“ backend/
β”‚ β”‚ β”œβ”€β”€ unit/
β”‚ β”‚ └── integration/
β”‚ └── πŸ“ ml_models/
β”‚ β”œβ”€β”€ test_crop_model.py
β”‚ β”œβ”€β”€ test_yield_model.py
β”‚ └── test_disease_model.py
β”‚ β”œβ”€β”€ πŸ“ scripts/ # Utility scripts
β”‚ β”œβ”€β”€ setup.sh # Quick setup script
β”‚ β”œβ”€β”€ deploy.sh
β”‚ β”œβ”€β”€ backup_database.sh
β”‚ └── generate_gifs.py # Script to create preview GIFs
β”‚ β”œβ”€β”€ πŸ“ config/ # Configuration files
β”‚ β”œβ”€β”€ environment.yml
β”‚ β”œβ”€β”€ nginx.conf
β”‚ └── gunicorn.conf.py
β”‚ β”œβ”€β”€ πŸ“ .github/ # GitHub workflows and templates
β”‚ β”œβ”€β”€ workflows/
β”‚ β”‚ β”œβ”€β”€ ci-cd.yml
β”‚ β”‚ └── deploy.yml
β”‚ β”œβ”€β”€ ISSUE_TEMPLATE/
β”‚ β”‚ β”œβ”€β”€ bug_report.md
β”‚ β”‚ └── feature_request.md
β”‚ └── PULL_REQUEST_TEMPLATE.md
β”‚ β”œβ”€β”€ πŸ“ data/ # Datasets and training data
β”‚ β”œβ”€β”€ πŸ“ crop_data/
β”‚ β”œβ”€β”€ πŸ“ disease_images/
β”‚ └── πŸ“ yield_data/
β”‚ β”œβ”€β”€ πŸ“ logs/ # Application logs
β”‚ β”œβ”€β”€ app.log
β”‚ β”œβ”€β”€ error.log
β”‚ └── access.log
β”‚ β”œβ”€β”€ πŸ“„ .env.example # Environment variables template
β”œβ”€β”€ πŸ“„ .gitignore
β”œβ”€β”€ πŸ“„ README.md # Main documentation
β”œβ”€β”€ πŸ“„ package.json # Node.js dependencies (if using Node)
β”œβ”€β”€ πŸ“„ requirements.txt # Python dependencies
β”œβ”€β”€ πŸ“„ Dockerfile # Container configuration
β”œβ”€β”€ πŸ“„ docker-compose.yml # Multi-container setup
└── πŸ“„ LICENSE # Project license\

Community Chat

Collaborate and discuss challenges, share solutions, and keep up with the latest in agriculture.

Plantation Guidance Access helpful plantation techniques and strategies for better crop growth.

Crop Planning Plan your season with confidence and unlock your farm's true potential for a more profitable and sustainable future.

πŸ›  Technologies Used

  • Frontend: HTML, CSS, JavaScript

  • Backend: Flask / Node.js

  • AI/ML Models: For prediction modules (Crop, Yield, Disease)

  • Database: MySQL / MongoDB

  • Hosting: Localhost (127.0.0.1), with option for cloud deployment

πŸ‘₯ Team Members & Roles

  • Om Roy – Project Lead & Web Developer & Machine Learning Engineer

  • Kanisha Ravindra Sharma – Machine Learning Engineer & Backend Developer

  • Shubhangi Roy – Machine Learning Engineer & Backend Developer

🀝 Contributing

We welcome contributions! Please read our Contributing Guide to get started. It includes:

Setting up the development environment

Code style guidelines

How to submit pull requests

Reporting issues

First time contributing? Check out our Good First Issues!

🌐 Future Scope ☁ Cloud deployment (e.g., Vercel, Heroku)

πŸ“± Mobile app integration

🌦 Real-time weather API

πŸ€– AI chatbot for agriculture support

πŸ—£ Support for regional languages

πŸ“ž Support If you encounter any issues:

Check the Troubleshooting Guide

Search existing Issues

Create a new issue with details about your problem

πŸ“„ License This project is licensed under the MIT License.

text

Additional Files to Create

1. CONTRIBUTING.md

markdown

Contributing to AgriTech

Thank you for your interest in contributing to AgriTech! Here's how you can help:

Development Setup

  1. Fork the repository
  2. Clone your fork
    git clone https://github.com/your-username/AgriTech.git
    cd AgriTech

Set up development environment

# Install dependencies (if any)
npm install
# or
pip install -r requirements.txt
Start development server
npm run dev
# or
python app.py
Making Changes
Create a new branch:
git checkout -b feature/your-feature-name
Make your changes and test thoroughly

Commit your changes:
git commit -m "Add: description of your changes"
Push to your fork:
git push origin feature/your-feature-name
Create a Pull Request

Code Style

  • Use meaningful variable names

  • Comment complex logic

  • Follow existing code formatting

  • Test your changes across different browsers

Need Help?

  • Join our discussions in Issues

  • Contact maintainers for guidance

  • text

2. TROUBLESHOOTING.md

markdown

Troubleshooting Guide

Common Issues

Page not loading?

  • Ensure you're running a local server, not just opening HTML files directly
  • Check if port 8000 is available, try a different port if needed

Features not working?

  • Check browser console for errors (F12 β†’ Console)
  • Ensure all dependencies are installed
  • Verify your browser supports ES6+ features

Images/GIFs not loading?

  • Check file paths are correct
  • Ensure images are in the correct directory
  • Verify file permissions

Getting Help

  1. Check this guide
  2. Search existing issues
  3. Create a new issue with:
    • Your browser and version
    • Error messages from console
    • Steps to reproduce the issue For Creating Preview GIFs You can create the suggested GIFs using:

Screen recording tools:

Windows: ScreenToGif, OBS Studio

Mac: QuickTime Player, GIPHY Capture

Linux: Peek, OBS Studio

Recommended workflow:

Record 5-10 second clips of key features

Optimize file size (keep under 5MB)

Show the most valuable interactions

Add to an /images or /gifs folder in your repo

About

AgriTech is an AI-powered web platform that offers crop recommendations, yield prediction, disease detection, and collaborative tools to empower farmers and promote smart, sustainable agriculture.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 62