Skip to content

ananya-ctrl/plantdoc

Repository files navigation

Plant Disease Detector

This project uses Django for the backend and React for the frontend.

Prerequisites

  • Python 3.x
  • Node.js & npm
  • pip (Python package manager)

Backend Setup (Django)

  1. Navigate to the backend directory:

    cd plant_disease_detector
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Generate a free Gemini API key:

    • Visit Google AI Studio and sign in with your Google account.
    • Click "Create API key" and copy the generated key.
  5. Add the Gemini API key to a .env file in the plant_disease_detector directory which is backend directory:

    • Create a file named .env (if it doesn't exist).
    • Add the following line, replacing with your actual key:
      GEMINI_API_KEY = 'Your Gemini API Key Here'
      
  6. Start the Django server:

    python manage.py runserver

Frontend Setup (React)

  1. Navigate to the frontend directory:
    cd plant_disease_detector_frontend
  2. Install dependencies:
    npm install
  3. Start the React development server:
    npm run dev

Usage

Notes

  • Ensure both servers are running for full functionality.
  • Update API endpoints in the React app if the backend URL changes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published