Aller au fichier
Ryan 27e2fbbac7 Kill old type 2018-01-07 22:27:45 -08:00
kappa123 Kill old type 2018-01-07 22:27:45 -08:00
.gitignore upgraded to python 3.6 2017-02-05 12:45:58 -07: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 13:21:23 -07:00
LICENSE kappa 2017-07-01 17:11:47 -07:00
README.md upgraded to python 3.6 2017-02-05 13:17:10 -07:00
requirements.txt stallmanW 2017-07-03 19:49:02 -05:00
setup.py Switch to setuptools 2017-07-01 19:22:20 -07:00
zappa_settings.json Add Prod moe configuration 2017-07-04 00:18:39 -05:00

README.md

Flask Skeleton

Flask starter project...

Build 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