Team Open the box met Emile, Beau, Greet en Sam
This project used to run on http://kiestze.be Meanwhile this domain is used by another party.
yarn development-windows yarn production-windows
We choose Django because:
secret.py
in kiestze_django/kiestze_django/
with the variables key
, psql_user
and psql_password
(you can generate a Django secret key on https://djskgen.herokuapp.com/)python kiestze_django/manage.py runserver
to run the development serverThis is only a development server. For setting up a production server (using nginx and gunicorn), see
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04
python build_steps.py
secret.py
in kiestze_django/kiestze_django/
with the variables key
, psql_user
and psql_password
(you can generate a Django secret key on https://djskgen.herokuapp.com/)All assets go through webpack to go minified. Javascript will also get bundles and be converted to simple javascript to work on all devices.
yarn production
(yarn production-windows
on Windows)To get get all 'politiekers' for a certain 'gemeente', use:
http://localhost/get_politiekers?gemeente_nis=36012&jaar=0
To get all 'partijen' for a certain 'gemeente', use:
http://localhost/get_partij?gemeente_nis=36012&jaar=0
To know what 'politiekers' are connected to what 'partijen', use the following call:
http://localhost/get_all_politieker_partij_link_van_gemeente?gemeente_nis=36012&jaar=0
(Note, that when jaar=0, information of all years will be returned)