Skip to content

learn-co-students/capstone-flask-app-template-seattle-ds-080519

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capstone Flask App Template

Requirements

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

Running the Flask Application

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published