Skip to content

Git-brintsi20/HackByte_3.0

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

86 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PlantZ Logo

🌱 PlantZ - AI-Powered Plant Healthcare Platform

Node.js React MongoDB TensorFlow Gemini API License PRs Welcome

Democratizing Plant Care Through AI-Powered Assistance

PlantZ is an innovative web application that breaks down barriers to plant care by providing AI-powered guidance, interactive plant management, and community-driven support. Our platform combines cutting-edge machine learning with intuitive design to make plant care accessible to everyone.


πŸ“Έ Platform Showcase

🏠 Home Dashboard

Home Page - Multilingual Feature

Dashboard with multilingual support for global accessibility

πŸ” Authentication

Login Page

Secure authentication with Cloudflare Turnstile

🌿 My Plants Dashboard

My Plants Section

Comprehensive plant management dashboard

πŸ’¬ AI Chat Assistant

Chat Assistant

Powered by Google Gemini for intelligent plant care advice

🎨 Plant Avatar System

Avatar Customization

Expressive avatars reflecting plant health status

πŸ–ΌοΈ Avatar Gallery

Avatar Gallery

Browse and select from various plant personalities

✨ Avatar Animations

Avatar Animations

Dynamic animations for engaging user experience

πŸ₯ Plant Health Monitor

Plant Health Dashboard

Real-time health tracking and diagnostics

🌐 Community Hub

Community Page

Share knowledge and connect with plant enthusiasts

πŸ”” Notifications Center

Notifications

Smart reminders for watering, fertilizing, and care

πŸ‘€ User Profile

Profile Page

Personalized user dashboard and statistics

βš™οΈ Settings

Settings Page

Customizable preferences and account management


πŸš€ Features

πŸ€– AI-Powered Plant Assistant

  • Gemini API Integration: Natural language plant care conversations
  • Real-time Advice: Instant responses to plant care questions
  • Context-Aware: Maintains conversation history for personalized assistance
  • Multilingual Support: Breaking language barriers in plant care

🌿 Interactive Plant Management

  • Plant Avatars: Expressive visual representations of plant health
  • Smart Dashboard: Intuitive overview of all your plants
  • Care Scheduling: Automated reminders and notifications
  • Progress Tracking: Monitor plant health over time

πŸ”¬ Disease Detection & Diagnosis

  • CNN-Powered Analysis: 98% accuracy in disease identification
  • Instant Diagnosis: Upload plant photos for immediate analysis
  • Treatment Recommendations: Evidence-based care suggestions
  • Prevention Tips: Proactive plant health management

πŸ’° Voucher-Sponsor System

  • Economic Accessibility: Reduced barriers through sponsored resources
  • Community Support: Connect with gardening suppliers and experts
  • Sustainable Ecosystem: Mutually beneficial for users and sponsors

πŸ› οΈ Tech Stack

Frontend

  • React 18+ - Modern UI framework
  • Tailwind CSS - Utility-first styling
  • Framer Motion - Smooth animations
  • Cloudinary - Image management

Backend

  • Node.js 18+ - Server runtime
  • Express.js - Web framework
  • MongoDB 6+ - NoSQL database
  • JWT - Authentication
  • Cloudflare Turnstile - Security

AI/ML

  • Google Gemini API - Conversational AI
  • TensorFlow - Disease detection model
  • Scikit-learn - Machine learning utilities
  • OpenCV - Image processing

πŸ“Š Performance Metrics

Our AI models deliver exceptional accuracy:

Component Accuracy Precision Recall F1-Score
Disease Detection 98% 98% 98% 98%
Plant Identification 95% 94% 96% 95%

Dataset: 70,029 training images, 17,572 testing images

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   React Client  β”‚    β”‚   Express API   β”‚    β”‚   MongoDB       β”‚
β”‚   (Frontend)    │◄──►│   (Backend)     │◄──►│   (Database)    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚                       β”‚                       β”‚
         β”‚              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”             β”‚
         └──────────────►│   Gemini API    β”‚             β”‚
                        β”‚   (AI Assistant)β”‚             β”‚
                        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜             β”‚
                                  β”‚                     β”‚
                        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”             β”‚
                        β”‚   TensorFlow    β”‚             β”‚
                        β”‚   (CNN Model)   β”‚β—„β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • MongoDB 6+
  • npm or yarn

Installation

# Clone the repository
git clone https://github.com/Divanshu0212/HackByte_3.0.git
cd HackByte_3.0

# Install dependencies
npm install

# Install frontend dependencies
cd frontend
npm install
cd ..

# Install backend dependencies
cd backend
npm install
cd ..

Environment Setup

Create .env files in both frontend and backend directories:

Backend .env

PORT=5000
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
GEMINI_API_KEY=your_gemini_api_key
CLOUDINARY_CLOUD_NAME=your_cloudinary_name
CLOUDINARY_API_KEY=your_cloudinary_key
CLOUDINARY_API_SECRET=your_cloudinary_secret

Frontend .env

REACT_APP_API_URL=http://localhost:5000
REACT_APP_TURNSTILE_SITE_KEY=your_turnstile_site_key

Running the Application

# Development mode (runs both frontend and backend)
npm run dev

# OR run separately
# Backend
cd backend && npm start

# Frontend
cd frontend && npm start

Visit http://localhost:3000 to see the application.

πŸ“ API Documentation

Authentication Endpoints

POST /api/auth/register    # User registration
POST /api/auth/login       # User login
POST /api/auth/verify      # Email verification

Plant Management

GET    /api/plants         # Get user's plants
POST   /api/plants         # Add new plant
PUT    /api/plants/:id     # Update plant
DELETE /api/plants/:id     # Delete plant

AI Assistant

POST /api/chat/message     # Send message to AI
GET  /api/chat/history     # Get conversation history

Disease Detection

POST /api/diagnosis/analyze  # Analyze plant image
GET  /api/diagnosis/history  # Get diagnosis history

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Code Style

  • Follow ESLint configuration
  • Use Prettier for formatting
  • Write meaningful commit messages
  • Add tests for new features

πŸ‘₯ Team

Name Role
Aryan Kesarwani Backend Developer
Salugu Harshita Bhanu Frontend & Security
Prakriti Das AI/ML Specialist
Divanshu Bhargava AI/ML Specialist

πŸ™ Acknowledgments

πŸ“ž Support

⭐ Show Your Support

If you find PlantZ helpful, please consider giving it a star on GitHub! Your support helps us continue improving the platform.


PlantZ - Breaking down the red tape of plant care, one leaf at a time.
Made with πŸ’š by the PlantZ Team

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 70.6%
  • JavaScript 26.4%
  • CSS 1.7%
  • Python 1.3%