We are using python-3.6.1
to run this app.
We are using virtualenv
for development.
We are using pip-tools
to specify dependencies.
Firstly, install pip-tools
into your virtualenv
:
pip install pip-tools
To install (or renew) existing dependencies run:
pip-sync
To add new dependency you will need to:
- Add it to the
requirements.in
- Run
pip-compile requirements.in
- Install new dependencies with
pip-sync
This command will run sanic
with default development
settings:
SIMPLE_SETTINGS=config.development python server/app.py
To specify other settings we are using simple_settings
module.
To specify different number of workers change the WORKERS
variable in the config file.
We are using py.test
for testing. Just run py.test
to run all the tests with coverage, linting, imports order and other features. See pytest.ini
for the whole list of settings and plugins.
We are using travis
to run tests on CI
. It also deploys your code to heroku
production server on successful push to master
branch. So be careful.