AgriSolutions-ML is a web-based agriculture assistant system that leverages machine learning models to provide crop recommendations, fertilizer suggestions, and crop detection. This project is built using React.js for the frontend, Node.js for the backend (login and registration), and Flask for serving machine learning models.
- User Authentication: Provides secure login and registration for users.
- Crop Recommendation: Recommends suitable crops based on various factors such as soil and weather conditions.
- Fertilizer Recommendation: Suggests fertilizers based on the crops selected and soil conditions.
- Crop Detection: Detects and classifies crops based on images provided by users.
- Frontend: React.js
- Backend: Node.js (for login and registration)
- Machine Learning: Flask (for serving ML models)
- Database: (Add if you're using a database, e.g., MongoDB, PostgreSQL, etc.)
- Hosting/Deployment: (Mention if you're using any specific hosting, e.g., Heroku, AWS, etc.)
Follow these steps to set up and run the project locally:
git clone https://github.com/shahvivek2004/AgriSolutions-ML.git
cd AgriSolutions-MLGo to the frontend folder and install the required dependencies:
Copy code
cd frontend
npm installGo to the backend folder and install the necessary dependencies:
Copy code
cd backend
npm installGo to the ml-model folder and install the required Python dependencies:
Copy code
cd ml-model
pip install -r requirements.txtMake sure you have Python 3.6+ installed. You'll also need to configure the models as per the instructions in the ml-model folder.
Copy code
cd frontend
npm startThis will start the frontend application on http://localhost:3000.
Copy code
cd backend
node server.jsMake sure your backend is running and listening on a specified port (default is http://localhost:5000).
Run the Flask application to serve the machine learning models:
Copy code
cd ml-model
flask runThe Flask app should be running on a default port (usually http://localhost:5000).
Frontend: Users can interact with the system to request crop recommendations, fertilizer suggestions, and crop detection by submitting input data through a user-friendly interface. Backend: The backend manages user authentication and communicates between the frontend and the Flask API for serving the machine learning predictions. Machine Learning: The Flask API serves the pre-trained machine learning models to provide crop recommendations, fertilizer suggestions, and detect crops based on image input. Folder Structure
Copy code
AgriSolutions-ML/
├── backend/ # Node.js backend for login/registration
├── frontend/ # React.js frontend
├── ml-model/ # Flask application serving ML models
├── .gitignore # Git ignore file
├── README.md # Project documentation
└── requirements.txt # Python dependencies for ML modelContributions are welcome! Feel free to fork the repository, open issues, and submit pull requests. Please follow the standard GitHub flow for contributions.
- Fork the repository.
- Create a new branch
(git checkout -b feature-branch). - Make changes and commit them
(git commit -m 'Add new feature'). - Push to the branch
(git push origin feature-branch). - Create a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to the open-source community for providing resources and libraries.