abhijeet141 / CropForesight-FrontEnd

This Repository includes the frontend code of the CropForesight website. The frontend of the project is written in ReactJS and CSS is used for styling.
https://crop-foresight-front-end.vercel.app
16 stars 73 forks source link

CropForesight (Frontend)

This Repository includes the frontend code of the CropForesight website. The frontend of the project is written in HTML, CSS, Javascript, and ReactJS. Before moving ahead, a short intro about the project.

CropForesight🌾

CropForesight is an advanced website designed to assist farmers and agriculture enthusiasts in making smart choices about which crops to grow on their land. It achieves this by using special computer programs that can learn from data and environmental information. These programs take into account factors like soil nutrients, rainfall, pH levels, and weather conditions. With all this data, CropForesight can accurately predict the best crop to cultivate, helping farmers maximize their productivity and yield. In addition, CropForesight employs an AlexNet model for the classification of tomato leaf diseases. This model analyzes images of tomato leaves to identify and diagnose diseases, helping farmers take timely action to protect their crops. It's like having a knowledgeable farming expert to guide you towards success!

🌐 Live Demo

Table of Contents

Features

HTML, CSS, Javascript, ReactJS

Usage

To experience the power of CropForesight, follow these simple steps:

✅ Visit the CropForesight website: https://abhijeet141.github.io/CropForesight-FrontEnd/.

✅ Enter the required details such as soil nitrogen value, phosphorus value, rainfall, pH, potassium, humidity, and temperature.

✅ Click on the "Recommend Crop" button to generate the optimal crop recommendation.

✅ Explore the recommended crop and gain insights into its suitability for your land.

Local Development

If you want to contribute to CropForesight or run it locally for development purposes, follow these steps:

  1. Clone the frontend repository:

    git clone https://github.com/abhijeet141/CropForesight-FrontEnd.git
  2. Change to the project directory:

    cd CropForesight-FrontEnd
  3. Install the required dependencies:

    npm install
  4. Run the frontend:

    npm start
  5. Clone the backend repository:

    git clone https://github.com/abhijeet141/CropForesight_BackEnd.git
  6. Change to the CropForesight_BackEnd directory:

    cd CropForesight_BackEnd
  7. Install the required dependencies:

    pip install -r requirements.txt

8. Run the backend:

```sh
 uvicorn main:app --reload
  1. Open the website in your browser at http://localhost:3000 to access the local instance of CropForesight.

Deployment

✅ CropForesight's frontend is deployed and can be accessed online at https://crop-foresight-front-end.vercel.app/.

✅ Feel free to explore the website and witness the power of smart crop recommendation firsthand!

Contributing

We welcome contributions from anyone who is interested in improving this project. If you'd like to contribute, here are some ways you can get started:

To submit a pull request, please follow these steps:

  1. Fork the Project
  2. Clone your forked repository
 git clone https://github.com/<your_github_username>/CropForesight-FrontEnd.git
  1. Now go ahead and create a new branch and move to the branch

    git checkout -b fix-issue-<ISSUE-NUMBER>
  2. After you have added your changes, follow the following command chain

    • Check the changed files
    git status -s
    • Add all the files to the staging area
      git add .

      or

      git add <file_name1> <file_name2>
    • Commit your changes
    git commit -m "<EXPLAIN-YOUR_CHANGES>"
  3. Push your changes

    git push origin fix-issue-<ISSUE-NUMBER>
  4. Open a Pull Request

Congratulations! 🎉 you've made your contribution.

Contributors ✨

We would like to express our heartfelt gratitude to the following contributors for their valuable contributions to Friday: We would like to express our heartfelt gratitude to the following contributors for their valuable contributions to CropForesight-FrontEnd:

Thanks to these wonderful people.

License

This project is licensed under the MIT License.

Please feel free to modify the sections and add any additional information or badges relevant to your project. Let me know if you need further help.

Back to top