This repository is the Flask web app for the main project, linked below.
The main GitHub project repository is here.
This repo uses Python 3.6.0. All python packages can be found in the requirements.txt
file. The requirements are in pip
style, because this is supported by Heroku.
To create a new conda
environment to use this repo, run:
conda create --name flask-env
conda activate flask-env
pip install -r requirements.txt
You will likely need to install additional packages to support your deployment. With the flask-env
activated, you can run conda install <package-name>
. Once you are ready to deploy, you can generate your own requirements.txt
for reproducibility purposes with:
pip freeze > requirements.txt
To run in a development environment (on your local computer)
export FLASK_ENV=development
env FLASK_APP=app.py flask run
To run in a production environment (used for deployment, but test it out locally first):
export FLASK_ENV=production
python app.py