Open Draaideur maakt de loopbanen van Tweede Kamerleden inzichtelijk
# clone the repo and chdir to there
cd backend && cp config.py.example config.py && cp config.yaml.example config.yaml
# Edit config.py and config.yaml accordingly to what you want
cd ../docker
docker-compose up -d
docker exec openlobby_backend_1 ./manage.py elasticsearch put_templates
docker exec openlobby_backend_1 alembic upgrade head
In development mode you can run ./bin/dev.sh
from the base directory, which will launch
the development environment.
To access the local development environment, add the following in /etc/hosts
:
127.0.0.1 api.opendraaideur.nl users.opendraaideur.nl www.opendraaideur.nl app.opendraaideur.nl
Then you can go to http://app.opendraaideur.nl
preferably in a private window, because of HSTS parameters on the live setup.
Open Draaideur uses Fabric for deployment. Run fab deploy
.
Open Draaideur uses alembic for migrations
docker exec openlobby_backend_1 alembic upgrade head
docker exec openlobby_backend_1 alembic downgrade -1
docker exec openlobby_backend_1 alembic revision -m "create account table"
Send an email to breyten@openstate.eu