Present calendars / diaries from public servants in a unified interface
The frontend is all JS.
The backend's intersting APIs are:
api/calendars/: JSON List of all calendars that have any events, with their ID and titleapi/events/CALENDAR_ID/: JSON list of calendar events.
Expects thestartandendparameters for filtering events.
Each one is an ISO-format date (2019-12-04).
make init
make serve
Download and parse all calendars sequentially:
venv/bin/python djang/manage.py dowenload_all
add --use-q if you want to utilize django-q (requires a worker process runnning).
Download a specific calendar:
venv/bin/python djang/manage.py dowenload 'RESOURCE-ID'
Add --force to overwrite an existing calendar
make translate
Check the generated po files, then run make translate again to compile them into mo files which are used by the app
This environment resembles the production environment as closely as possible.
Run migrations:
docker-compose run --build --rm migrateStart the web app:
docker-compose up -d --build ingressAccess at http://localhost:8000
Start a shell to run management commands:
docker-compose exec web bash
pytyhon manage.pyStart the Q Cluster:
docker-compose up -d --build qcluster