Skip to content

Learning how to make a static and dynamic website using HTML!

License

Notifications You must be signed in to change notification settings

hoffm386/capstone-flask-app-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Learning how to make a static and dynamic website using HTML!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 51.0%
  • Python 49.0%