Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 1.41 KB

README.md

File metadata and controls

68 lines (44 loc) · 1.41 KB

Starter Weppy

Starter Weppy is an experimental baseline microservice application starter kit built on the weppy framework.

TODO:

  • Write a script that will create a new project based on this "starter weppy" structure with an app name as an argument.

Table of Contents generated with DocToc

Run

Requirements:

  • Python 2.7.11

For automated pip and virtual env setup and creation, clone this repository and in your terminal do:

. ./setup.sh
python run.py

Otherwise, do:

pip install -r requirements.txt
python run.py

Develop

Running in development mode will enable debug pages, automatically create test, users in multiple states, and upon killing the app, those test users will automatically be deleted from the DB.

To start the app in development mode, do:

python run.py --dev

See my_weppy_app_/cli.py for cli commands.

Test

The tests requires the app to be running in dev mode for integration testing.

Run the app in dev mode. Then in another shell, do:

py.test -v -s --cov-report term-missing --cov=my_weppy_app tests