Git Product home page Git Product logo

crop_calculator's Introduction

Sustainable Farm Calculator

This project is designed to help non-profits in Africa to implement a sustainable farm to feed the population. It is still a work in progress.

Project Overview

The project includes a calculator that helps determine the crops and livestock needed to feed a given population with a specified calorie and protein intake. The calculator takes into account the acreage of land available and the length of the dry and wet seasons.

The project includes the following files:

results.html: Displays the results of the calculator. base.html: Base HTML file that is extended by the other HTML files. crop_calculator.html: The HTML file that contains the crop calculator form. calculations.py: The Python file that contains the logic for the calculator. forms.py: The Python file that contains the Django form for the calculator. crops_list.py: A Python file that contains data about the crops and livestock.

Calculator Usage

To use the calculator, follow these steps:

Open the crop_calculator.html file in a web browser. Enter the required information in the form, including the number of people, acreage, daily calorie intake, daily protein intake, and dry and wet season lengths. Select the desired crops and livestock from the checkbox lists. Click the "Calculate" button to view the results. The results page will display the selected crops and livestock and the required acreage, calories, and protein for each.

Technologies Used

The project was built using the following technologies:

Python Django HTML CSS Contributing If you would like to contribute to the project, please fork the repository and create a pull request with your changes.

Acknowledgments

This project was inspired by the work of non-profits in Africa that are working to create sustainable farms to feed the population.

Sustainable Farming for Non-Profits in Africa

This project is designed to help non-profits in Africa to implement a sustainable farm to feed the population. The project is currently a work in progress.

Requirements

To run this project, you need to have Python 3 and Django 3 installed on your system.

Installation

To install and run the project, follow these steps:

Clone the repository to your local machine. Create a virtual environment for the project: python3 -m venv env. Activate the virtual environment: source env/bin/activate. Install the project dependencies: pip install -r requirements.txt. Migrate the database: python manage.py migrate. Run the development server: python manage.py runserver.

Usage

To use the project, follow these steps:

Open a web browser and go to http://localhost:8000/calculations/. Enter the number of people, acreage, calories per day, protein per day, dry season length, and wet season length. Select the crops and livestock that you want to include. Click the "Calculate" button. The results page will display the acres required, calories, and protein for each selected crop and livestock.

Contributing

This project is open to contributions. If you would like to contribute, please fork the repository, make your changes, and submit a pull request.

License

This project is licensed under the MIT License.

Contact Information

Name: Marcio Cavalcante de Azevedo Email: [email protected] LinkedIn: [www.linkedin.com/in/marcioazevedohub ](https://www.linkedin.com/in/marcioazevedohub

crop_calculator's People

Contributors

mcante6 avatar

Watchers

 avatar

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.