yig is a django app for exploring bills and resolutions in previous YMCA CCE conferences.
It's sort of ballooned to also contain a knowledge-base thing.
- Ensure that you have Docker installed and good to go.
For NixOS machines, this involves the following:
{ ... }
{
virtualisation.docker.enable = true;
users.users.<your user>.extraGroups = [ ... ] ++ [ "docker" ];
}- Enter the
nix-shell. make permissionsmake
To tear down the docker container, type make clean.
If you've just started the instance, you also need to configure a superuser.
- Run
docker ps | grep yig-web | awk -F' ' '{print $1}'to get the container id - Run
docker exec -it <container-id> bashto get a shell. - Run
python3 manage.py createsuperuserand follow the prompts.
In order to use the explorer component of this package, you need to add some legislative texts.
These are in the form of PDFs -- they come from the YMCA CCE website or are sometimes emailed or otherwise shared with you.
Only these PDFs will work because they follow a very specific format which the software exploits.
- Login with your admin account.
- Click on the
addbutton next toLegislation booksin the sidebar - Upload your book, add a name, and choose the correct
Import strategy - Click save
More information about operation of this project can be found in the knowledgebase directory.
yig is licensed under the AGPLv3 -- the terms of the license are available in LICENSE.md.