Skip to content

tejassapara61-stack/green-GO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌱 GreenGo - Crop Helper Platform

GreenGo Logo

Smart Agricultural Solutions for Modern Farmers

React Vite Firebase TailwindCSS License

πŸš€ Live Demo | πŸ“– Documentation | πŸ› Report Bug | ✨ Request Feature

πŸ“‹ Table of Contents


🌾 Overview

GreenGo is a comprehensive agricultural platform designed to empower farmers with cutting-edge technology and data-driven insights. From crop planning and disease detection to real-time weather monitoring and government scheme awareness, GreenGo provides end-to-end solutions for modern agriculture.

🎯 Mission

To bridge the gap between traditional farming practices and modern technology, enabling farmers to make informed decisions, maximize yields, and achieve sustainable agricultural growth.

✨ Key Highlights

  • πŸ€– AI-Powered Disease Detection - Early identification of crop diseases
  • πŸ“Š Smart Crop Planning - Data-driven planting recommendations
  • 🌦️ Real-Time Weather Insights - Hyperlocal weather forecasting
  • πŸ“œ Government Schemes Hub - Easy access to agricultural subsidies
  • 🌍 Multi-Language Support - Accessible to farmers nationwide
  • πŸ“± Responsive Design - Works seamlessly across all devices

πŸš€ Features

1. 🧠 Smart Crop Planner

  • Intelligent Recommendations - AI-driven suggestions based on:
    • Soil type and quality
    • Regional climate patterns
    • Market demand trends
    • Historical yield data
  • Seasonal Planning - Optimize planting schedules
  • Crop Rotation Advisor - Maintain soil health
  • Yield Predictions - Forecast expected harvest

2. πŸ”¬ Disease Detection System

  • Image-Based Analysis - Upload crop photos for instant diagnosis
  • ML-Powered Recognition - Detect diseases with high accuracy
  • Treatment Recommendations - Get actionable remediation steps
  • Disease Database - Comprehensive catalog of crop ailments
  • Prevention Tips - Proactive crop health management

3. ☁️ Weather Monitoring

  • Real-Time Updates - Current weather conditions
  • 7-Day Forecasts - Plan ahead with confidence
  • Rainfall Predictions - Critical for irrigation planning
  • Temperature Trends - Optimize crop care activities
  • Weather Alerts - Get notified of extreme conditions

4. 🌾 Crop Information Portal

  • Crop Encyclopedia - Detailed cultivation guides
  • Best Practices - Expert farming techniques
  • Nutrient Requirements - Fertilization guidance
  • Growth Stages - Monitor crop development
  • Market Prices - Stay informed on crop values

5. πŸ“‹ Government Schemes

  • Centralized Hub - All agricultural schemes in one place
  • Eligibility Checker - Find schemes you qualify for
  • Application Guidance - Step-by-step application process
  • Document Checklists - Required paperwork guidance
  • Deadline Tracking - Never miss an opportunity

6. πŸ” User Authentication

  • Secure Firebase Auth - Industry-standard security
  • Profile Management - Personalized user experience
  • Data Privacy - Your information stays protected
  • Session Management - Secure and persistent logins

7. 🌐 Internationalization

  • Multi-Language Support - React i18next integration
  • Regional Customization - Localized content
  • Easy Language Switching - One-click translation
  • Inclusive Design - Accessible to all farmers

πŸ› οΈ Tech Stack

Frontend

  • βš›οΈ React 19.1.1 - Modern UI library with latest features
  • ⚑ Vite 7.1.2 - Lightning-fast build tool and dev server
  • 🎨 Tailwind CSS 4.1.13 - Utility-first CSS framework
  • 🧭 React Router DOM 7.9.1 - Client-side routing
  • 🎭 Lucide React - Beautiful, consistent icons
  • πŸ”” React Toastify - Elegant notifications

Backend & Services

  • πŸ”₯ Firebase 12.2.1 - Backend-as-a-Service
    • Authentication
    • Firestore Database
    • Cloud Storage
    • Hosting
  • πŸ“‘ Axios - HTTP client for API requests

Development Tools

  • πŸ“¦ npm - Package management
  • πŸ” ESLint - Code quality and consistency
  • 🎯 Vite Plugin React - Fast refresh and optimizations

🏁 Getting Started

Prerequisites

Ensure you have the following installed:

  • Node.js (v18.0.0 or higher)
  • npm (v9.0.0 or higher)
  • Git
  • Firebase Account (for backend services)

Installation

  1. Clone the repository

    git clone https://github.com/tejassapara61-stack/green-GO.git
    cd green-GO/GreenGo
  2. Install dependencies

    npm install
  3. Configure Firebase

    • Create a Firebase project at Firebase Console
    • Enable Authentication (Email/Password)
    • Create a Firestore Database
    • Copy your Firebase config
  4. Set up environment variables

    # Create .env file in the root directory
    cp .env.example .env
  5. Start the development server

    npm run dev
  6. Open your browser

    Navigate to http://localhost:5173
    

Environment Variables

Create a .env file in the root directory:

# Firebase Configuration
VITE_FIREBASE_API_KEY=your_api_key_here
VITE_FIREBASE_AUTH_DOMAIN=your_auth_domain_here
VITE_FIREBASE_PROJECT_ID=your_project_id_here
VITE_FIREBASE_STORAGE_BUCKET=your_storage_bucket_here
VITE_FIREBASE_MESSAGING_SENDER_ID=your_sender_id_here
VITE_FIREBASE_APP_ID=your_app_id_here
VITE_FIREBASE_MEASUREMENT_ID=your_measurement_id_here

# API Endpoints (Optional)
VITE_WEATHER_API_KEY=your_weather_api_key_here
VITE_ML_API_ENDPOINT=your_ml_api_endpoint_here

⚠️ Important: Never commit your .env file to version control!


πŸ’‘ Usage

For Farmers

  1. Sign Up / Login

    • Create an account using email and password
    • Verify your email address
  2. Explore Dashboard

    • Access personalized recommendations
    • View your saved crops and plans
  3. Plan Your Crops

    • Navigate to Smart Planner
    • Input your land details
    • Get AI-powered recommendations
  4. Check Weather

    • View real-time weather data
    • Plan irrigation and harvesting
  5. Detect Diseases

    • Upload photos of affected crops
    • Receive instant diagnosis
    • Follow treatment recommendations
  6. Browse Schemes

    • Find eligible government programs
    • Learn application procedures
    • Track deadlines

For Developers

# Development mode with hot reload
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

# Run linter
npm run lint

πŸ“ Project Structure

green-GO/
β”œβ”€β”€ GreenGo/
β”‚   β”œβ”€β”€ public/                 # Static assets
β”‚   β”‚   β”œβ”€β”€ crops.jpg
β”‚   β”‚   └── vite.svg
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ assets/            # Images, fonts, etc.
β”‚   β”‚   β”‚   └── react.svg
β”‚   β”‚   β”œβ”€β”€ components/        # Reusable UI components
β”‚   β”‚   β”‚   β”œβ”€β”€ About.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Contact.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ CoreValues.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ DashboardPreview.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Features.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Footer.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Hero.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Navbar.jsx
β”‚   β”‚   β”‚   └── Navbar2.jsx
β”‚   β”‚   β”œβ”€β”€ pages/             # Page components
β”‚   β”‚   β”‚   β”œβ”€β”€ Crops.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ DiseaseDetector.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Home.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Login.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Schemes.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Signup.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ SmartPlanner.jsx
β”‚   β”‚   β”‚   └── Weather.jsx
β”‚   β”‚   β”œβ”€β”€ images/            # Image assets
β”‚   β”‚   β”‚   β”œβ”€β”€ dashboard.jpg
β”‚   β”‚   β”‚   β”œβ”€β”€ logo.jpg
β”‚   β”‚   β”‚   └── logo.png
β”‚   β”‚   β”œβ”€β”€ App.jsx            # Main application component
β”‚   β”‚   β”œβ”€β”€ App.css            # Global styles
β”‚   β”‚   β”œβ”€β”€ main.jsx           # Application entry point
β”‚   β”‚   β”œβ”€β”€ index.css          # Base CSS
β”‚   β”‚   β”œβ”€β”€ firebase.js        # Firebase configuration
β”‚   β”‚   └── GoogleTranslate.jsx # Translation component
β”‚   β”œβ”€β”€ .gitignore             # Git ignore rules
β”‚   β”œβ”€β”€ eslint.config.js       # ESLint configuration
β”‚   β”œβ”€β”€ index.html             # HTML entry point
β”‚   β”œβ”€β”€ package.json           # Dependencies and scripts
β”‚   β”œβ”€β”€ package-lock.json      # Locked dependencies
β”‚   β”œβ”€β”€ README.md              # Project documentation
β”‚   └── vite.config.js         # Vite configuration

🧩 Core Modules

Authentication Module (firebase.js)

// Firebase initialization and auth configuration
// Handles user authentication, session management

Routing System (App.jsx)

// Protected routes
// Public routes
// Authentication context
// Role-based access control

State Management

// React Context API for global state
// Local state for component-specific data
// Firebase real-time listeners

🀝 Contributing

We welcome contributions from the community! Here's how you can help:

How to Contribute

  1. Fork the repository

    # Click the 'Fork' button on GitHub
  2. Clone your fork

    git clone https://github.com/YOUR_USERNAME/green-GO.git
    cd green-GO/GreenGo
  3. Create a feature branch

    git checkout -b feature/AmazingFeature
  4. Make your changes

    • Write clean, documented code
    • Follow existing code style
    • Add tests if applicable
  5. Commit your changes

    git commit -m 'feat: Add AmazingFeature'
  6. Push to your fork

    git push origin feature/AmazingFeature
  7. Open a Pull Request

    • Provide a clear description
    • Reference any related issues

Contribution Guidelines

  • πŸ“ Follow the code style and conventions
  • βœ… Ensure all tests pass
  • πŸ“š Update documentation as needed
  • πŸ› Write clear commit messages
  • 🀝 Be respectful and collaborative

Code of Conduct

  • Be respectful and inclusive
  • Accept constructive criticism
  • Focus on what's best for the community
  • Show empathy towards others

πŸ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

MIT License

Copyright (c) 2025 Tejas Sapara

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...

πŸ“ž Contact

Project Lead

Tejas Sapara

Project Links


πŸ™ Acknowledgments

Special thanks to:

  • 🌾 Farmers - For inspiring this project
  • πŸŽ“ Agricultural Experts - For domain knowledge
  • πŸ’» Open Source Community - For amazing tools and libraries
  • πŸ”₯ Firebase Team - For robust backend services
  • βš›οΈ React Team - For an incredible framework
  • 🎨 Tailwind CSS - For beautiful styling utilities
  • πŸš€ Vite Team - For blazing fast development

Built With ❀️ for Farmers



πŸ“Š Project Stats

GitHub repo size GitHub code size GitHub last commit GitHub issues GitHub pull requests


⭐ If you find this project useful, please give it a star! ⭐

Made with πŸ’š by the GreenGo Team

Back to Top ⬆️

# green-GO # green-GO # green-GO

About

🌱 GreenGo - Smart Agricultural Platform empowering farmers with AI-powered disease detection, intelligent crop planning, real-time weather monitoring, and government scheme awareness. Built with React, Firebase, and Tailwind CSS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors