stupidcomputer 2a6e42da9c | ||
---|---|---|
archive | ||
contrib | ||
franklincce | ||
kb | ||
nginx | ||
.env.dev | ||
.env.prod.orig | ||
.gitignore | ||
LICENSE.md | ||
Makefile | ||
README.md | ||
docker-compose.prod.yml | ||
docker-compose.yml | ||
gen_kb.sh | ||
links-to-html.lua | ||
shell.nix | ||
template.html |
README.md
yig
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.
Deploying in production
- 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 permissions
make
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> bash
to get a shell. - Run
python3 manage.py createsuperuser
and follow the prompts.
Usage
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
add
button next toLegislation books
in the sidebar - Upload your book, add a name, and choose the correct
Import strategy
- Click save
More information
More information about operation of this project can be found in the knowledgebase directory.
License
yig
is licensed under the AGPLv3 -- the terms of the license are available in LICENSE.md
.