oSoc18 / kiest_ze

Team Open the box
Apache License 2.0
2 stars 0 forks source link

kiest_ze

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

Backend

We choose Django because:

Install Requirements

Run server (development)

This 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

Run server (production)

Frontend

All assets go through webpack to go minified. Javascript will also get bundles and be converted to simple javascript to work on all devices.

Install requirements

Run Frontend

Build Frontend

API

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)