Go to file
Michael Herman c67b032897 upgraded to python 3.6 2017-02-05 11:51:30 -07:00
project updated dependencies 2016-12-12 22:58:19 -07:00
.gitignore Update .gitignore 2016-05-01 10:55:33 +01:00
.python-version upgraded to python 3.6 2017-02-05 11:51:30 -07:00
.travis.yml upgraded to python 3.6 2017-02-05 11:51:30 -07:00
LICENSE Update LICENSE 2016-03-14 11:19:24 -06:00
README.md upgraded to python 3.6 2017-02-05 11:51:30 -07:00
manage.py Merge branch 'master' of github.com:realpython/flask-skeleton 2016-07-17 10:44:44 -06:00
requirements.txt upgraded to python 3.6 2017-02-05 11:51:30 -07:00

README.md

Flask Skeleton

Flask starter project...

Build Status Coverage Status

Quick Start

Basics

  1. Create and activate a virtualenv
  2. Install the requirements

Set Environment Variables

Update project/server/config.py, and then run:

$ export APP_SETTINGS="project.server.config.DevelopmentConfig"

or

$ export APP_SETTINGS="project.server.config.ProductionConfig"

Create DB

$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_admin
$ python manage.py create_data

Run the Application

$ python manage.py runserver

So access the application at the address http://localhost:5000/

Want to specify a different port?

$ python manage.py runserver -h 0.0.0.0 -p 8080

Testing

Without coverage:

$ python manage.py test

With coverage:

$ python manage.py cov