Skip to content

dmon6/flask_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running a Flask App

Dependencies for my build

  • Python 3.7
  • pipenv - used for virtual enviroment management
  • flask
  • blinker
  • simplejson
  • python-dotenv
  • watchdog
  • flask-wtf

Install dependencies

pipenv install <dependencies>

Activate pipenv

You must be in virtual environment to run the flask app

pipenv shell

Environment Variables for flask app and run

export FLASK_APP=<flask_app_name>.py
export FLASK_DEBUG=1 #sets it to debug, no need to stop server to see updated changes
flask run

Run debug mode from within the script

if __name__ == 'main':
	app.run(debug=True)

About

Flask tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published