This project has been replaced by https://github.com/SebastiaanPasterkamp/dndmachine
virtualenv <path/to/python-env>/dndmachine
. <path/to/python-env>/dndmachine/bin/activate
pip install -r requirements.txt
export FLASK_APP=app/app.py
./run.py --debug --initdb
( cd ui && npm install )
( cd ui && npm run build )
python tests/run_tests.py
( cd ui && npm run test )
( cd ui && npm run dev )
export FLASK_APP=app/app.py
./run.py --debug
export FLASK_APP=app/app.py
./run.py --debug --updatedb
./run.py --debug --migrate
export FLASK_APP=app/app.py
./run.py --threaded
Visit D&D Machine
The docker image keeps the flask database in a volume, so it's persistent between restarts. The database will be upgraded during start-up should the container start with a newer version.
docker build \
--tag dnd-machine:latest .
# Replace existing images
docker stop dndmachine
docker rm dndmachine
# Launch the new image
docker run \
--detach \
--publish 5000:5000 \
--name dndmachine \
--restart always \
dnd-machine:latest
docker-compose build
docker-compose up
docker-compose down