$ git clone
$ cd tacos-server/
$ pipenv install
$ pipenv shell
$ python src/ db_create
$ python src/ db_init
$ python src/

On Heroku:

$ heroku create --region eu tacos-backend
$ heroku addons:add heroku-postgresql:hobby-dev
$ heroku config:set APPLICATION_SETTINGS='heroku.cfg'
$ git push heroku master
$ heroku run init
$ heroku ps:scale web=1


Configuration variables

Deployment with WSGI

Populating the database

Configuring some source of news

# Creation of a set of feeds
python src/ add_feed_set 'Luxembourg Greater Region' 'Feeds proposed by CASES Luxembourg.' 1
# Adding some news to the newly created set
python src/ add_feed 'BEE Secure' 'Bee Secure feed' de 1
python src/ add_feed 'Silicon Luxembourg' 'Silicon Luxembourg' en 1

Retrieving phone numbers from MISP

$ heroku config:set MISP_URL=<MISP-instance-URL>
$ heroku config:set MISP_KEY=<MISP-token>
$ heroku run python src/ retrieve_spam_from_misp