A machine learning-powered application that provides intelligent crop recommendations based on environmental and soil conditions.
- Features
- Project Structure
- Installation
- Usage
- Backend Setup
- Frontend Setup
- Model Information
- Technologies Used
- 🌾 AI-powered crop recommendations
- 📊 Data-driven decision making
- 🎨 Interactive web interface
- 📱 Responsive design
- 🚀 REST API backend
crop/
├── app.py # Flask/Django backend application
├── generate_backend.py # Backend generation script
├── run_eval.py # Model evaluation script
├── Crop_Recommendation_AI.ipynb # Jupyter notebook with ML model
├── README.md # This file
├── frontend/ # React/Vue frontend
│ ├── src/
│ │ ├── App.jsx
│ │ ├── main.jsx
│ │ ├── App.css
│ │ ├── index.css
│ │ └── assets/
│ ├── public/
│ ├── vite.config.js
│ ├── tailwind.config.js
│ ├── postcss.config.js
│ ├── eslint.config.js
│ ├── package.json
│ └── README.md
└── model/ # Machine learning models
- Python 3.8+
- Node.js 14+
- npm or yarn
# Navigate to project root
cd crop
# Install Python dependencies
pip install -r requirements.txt
# Run the application
python app.pyThe backend will be available at http://localhost:5000 (or configured port).
# Navigate to frontend directory
cd frontend
# Install dependencies
npm install
# Start development server
npm run devThe frontend will be available at http://localhost:5173 (Vite default).
-
Start the Backend
python app.py
-
Start the Frontend
cd frontend npm run dev -
Access the Application
- Open your browser and navigate to
http://localhost:5173 - Input soil and environmental parameters
- Receive crop recommendations from the AI model
- Open your browser and navigate to
The crop recommendation model is built using machine learning techniques and is defined in the Jupyter notebook: Crop_Recommendation_AI.ipynb
To evaluate the model:
python run_eval.py- Python
- Flask or Django (see app.py)
- React or Vue.js
- Vite (build tool)
- Tailwind CSS (styling)
- ESLint (code quality)
- Jupyter Notebook for model development
- Python ML libraries (pandas, scikit-learn, etc.)
Refer to the backend documentation or app.py for available API endpoints and request/response formats.
Feel free to submit issues and enhancement requests!