This project is a Node.js and React-based application that detects crop diseases and provides information about their prevention using the Plant.id API. The application allows users to upload images of crops, which are then analyzed to assess their health.
- Upload images of crops for health assessment.
- Provides detailed information about detected diseases, including treatments and causes.
- User-friendly interface built with React and Tailwind CSS.
- Uses multer for image upload handling.
- Implements Axios for API calls to the Plant.id health assessment service.
- Backend: Node.js, Express.js
- Frontend: React.js, Tailwind CSS
- Image Upload: Multer
- HTTP Requests: Axios
- Environment Variables: dotenv
-
Clone the repository:
git clone https://github.com/Ketan-Chaudhary/AgriHealthAnalyzer.git
-
Navigate to the project directory:
cd AgriHealthAnalyzer
-
Install the required packages:
npm install
-
Create a
.env
file in the root directory and add your Plant.id API key:PLANT_ID_API_KEY=your_api_key_here
-
Start the server:
node server.js
The server will run on
http://localhost:5000
.
- Open your frontend application (if it's separate) in your browser.
- Navigate to the health assessment feature.
- Upload an image of a crop to receive a health assessment.
This project utilizes the Plant.id API for health assessment. Ensure you are familiar with their documentation to understand the request and response formats.
Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request with your changes.
- Plant.id for providing the health assessment API.
- Express.js for the backend framework.
- React.js for building the frontend.
- Tailwind CSS for styling.