This simple application allows users to determine whether their location would be a good place to plant by collecting rainfall data for their region. Right now we are using Flask, but we may use a different framework soon.
You'll need Python version 3.6 or above (newest version preferable). You'll also need to install several libraries through the application's virtual environment.
- Download or clone the repository
- Using your terminal, change your directory to the repository
- Create the virtual environment with
source env/bin/activate
- Install the required packages using
pip install -r requirements.txt
- Tell Flask where to find the application with
export FLASK_APP=app
- Switch to development mode using
export FLASK_ENV=development
- And finally, run the application with
flask run
Please note! Although the application is now running, the data (which is stored locally) still needs to be retrieved first. Follow these instructions to download that data
- Change your directory to the repository using your terminal and type in
jupyter notebook
(you will need to have Jupyter Notebook installed) - Create a new directory called "africa-rainfall" within the repository
- Open
DataCollectionForFullYear.ipynb
using Jupyter Notebook in your web browser - Run all cells to collect the rainfall data from the AWS S3 bucket here