Skip to content

Lucas-C/shared-img-reveal

Repository files navigation

Pull Requests Welcome build status GPL v3 license

Online demo at: https://chezsoi.org/lucas/jdr/shared-img-reveal/

Usage: the GM creates a table, and share the public URL with players. The portions of the image seen by the other players can then be controlled the GM by clicking the hatched zones.

This web application was made as a companion for some scenarios for Run. Die. Repeat. : Les Couloirs du Temps @ itch.io.

Demo images

Many more great CC BY-NC isometric maps can be found at One Page Dungeon Contest or here: https://www.elventower.com/isometric-maps/

Installation

Local launch

pip install -r requirements.txt
FLASK_ENV=development ./sir_app.py

systemd service

$ pew new shared-img-reveal -p python3 -r requirements.txt
$ cat /etc/systemd/system/shared-img-reveal.service
[Service]
WorkingDirectory=/path/to/parent/dir
ExecStart=/usr/local/bin/pew in shared-img-reveal python -u sir_app.py
Restart=always

nginx configuration

location /shared-img-reveal {
    include uwsgi_params;
    rewrite ^/shared-img-reveal/?(.*)$ /$1 break;
    proxy_pass http://127.0.0.1:8086;
}

License

Thi code is released under GPL v3 license, climate-strike BSD and The Hippocratic License 2.1.