Giter Club home page Giter Club logo

lawalthewest / cyps Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 4.75 MB

The Crop Yield Prediction System uses machine learning to forecast agricultural yields and provides essential crop information. Integrating weather, soil, and historical data, it offers accurate predictions and supports models like Linear Regression, Random Forest, and Neural Networks.

Home Page: http://cyps.onrender.com/

Python 77.76% HTML 16.18% CSS 5.13% JavaScript 0.93%
crop crop-yield crops csss html javascript machine-learning prediction python python3 react yield yield-farming yield-prediction crop-yield-preediction-system

cyps's Introduction

Crop Yield Prediction System (CYPS)

Overview

The Crop Yield Prediction System (CYPS) is a web application designed to provide detailed information about various crops, including their scientific names, descriptions, uses, nutritional values, and optimal growing conditions. This system allows users to view a list of crops and access detailed information about each crop.

Features

  • List of crops with links to detailed information.
  • Detailed crop pages with sections on scientific name, description, uses, nutritional values, and growing conditions.
  • User-friendly interface for navigating crop information.

Technologies Used

  • Python 3: The core programming language used for backend development.
  • Flask: A lightweight WSGI web application framework used for building the web application.
  • HTML/CSS: For structuring and styling the web pages.
  • Jinja2: For templating in Flask.

Installation

Prerequisites

  • Python 3.x installed on your machine.
  • pip, the Python package installer.

Steps

  1. Clone the repository:

    git clone https://github.com/lawalTheWest/_CYPS_.git
    cd crop-yield-prediction
  2. Create and activate a virtual environment (optional but recommended):

    python3 -m venv venv
    source venv/bin/activate
  3. Install the required packages:

    pip install -r requirements.txt
  4. Run the application:

    export FLASK_APP=run.py
    export FLASK_ENV=development
    flask run

    The application should now be running at http://127.0.0.1:5000/.

Project Structure


CYPS/
├── app
│   ├── api.py
│   ├── crops.py
│   ├── __init__.py
│   ├── __pycache__
│   │   ├── crops.cpython-310.pyc
│   │   ├── crops.cpython-38.pyc
│   │   ├── __init__.cpython-310.pyc
│   │   ├── __init__.cpython-38.pyc
│   │   ├── routes.cpython-310.pyc
│   │   └── routes.cpython-38.pyc
│   ├── README.md
│   └── routes.py
├── config.py
├── old.py
├── __pycache__
│   ├── app.cpython-38.pyc
│   ├── config.cpython-310.pyc
│   └── config.cpython-38.pyc
├── README.md
├── run.py
├── static
│   ├── css
│   │   ├── about.css
│   │   ├── common.css
│   │   ├── crops.css
│   │   ├── footer.css
│   │   ├── header.css
│   │   ├── index.css
│   │   └── README.md
│   ├── images
│   │   └── lawal.jpg
│   ├── js
│   │   └── script.js
│   └── README.md
└── templates
    ├── 404.html
    ├── about.html
    ├── base.html
    ├── blog.html
    ├── crop_detail.html
    ├── crops.html
    ├── index.html
    ├── layout.html
    ├── README.md
    └── weather.html

  • app/: Contains the application modules and packages.
    • api.py: API endpoints for the application.
    • crops.py: Contains the crop data.
    • routes.py: Contains the Flask routes for handling web requests.
    • init.py: Initializes the Flask application.
  • config.py: Configuration settings for the Flask application.
  • old.py: (Deprecated or old code if not in use).
  • run.py: The main entry point to run the Flask application.
  • static/: Contains static files like CSS, JavaScript, and images.
  • templates/: Contains HTML templates for the web pages.
  • README.md: Project documentation (this file).

Usage

  • Navigate to /crops to see the list of all crops.
  • Click on any crop name to view detailed information about that crop.
  • advanced features Coming soon...

Contributing

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Commit your changes.
  4. Push the branch to your fork.
  5. Create a pull request with a detailed description of your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or suggestions, feel free to open an issue or contact me at [email protected].

cyps's People

Contributors

lawalthewest avatar

Stargazers

 avatar  avatar

Watchers

Kostas Georgiou avatar  avatar

Forkers

ibrahimkankia

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.