Deployment

Heroku

$ git clone https://github.com/monarc-project/stats-service
$ cd stats-service/
$ heroku create --region eu <name-of-your-instance>
$ heroku addons:add mongolab:sandbox
$ heroku config:set HEROKU=1
$ heroku config:set INSTANCE_URL=https://<name-of-your-instance>.herokuapp.com
$ heroku config:set FLASK_APP='runserver.py'
$ heroku config:set FLASK_ENV='development'
$ git push heroku master

A demo instance is available here.

Create a new organization:

heroku run flask create_organization --name <name-of-the-organization>

All commands (Command Line Interface) are available. Just prefix with heroku run.