Skip to content

Django project that merges all X-Wing Miniatures rules and its erratas into a single source/book/website

Notifications You must be signed in to change notification settings

lvisintini/xwing-rulebook

Repository files navigation

Useful commands

$ sudo apt-get install postgresql postgresql-client virtualwrapper
$ mkvirtualenv --python=/usr/bin/python3.6 xwing-rulebook
$ git clone [email protected]:lvisintini/xwing-rulebook.git
$ cd xwing-rulebook
$ python manage.py download_libs
$ pip install -r requirements.txt
$ npm install yarn
$ yarn
$ sudo su - postgres
$ createdb rulebookdb;

$ ssh #########  'pg_dump -O -F c -n public postgres://<user>:<password>@<location-or-domain>:5432/rulebookdb' > ~/Downloads/latest.dump
$ sudo su - postgres
$ pg_dump -O -F c -n public postgres://<user>:<password>@<location-or-domain>:5432/rulebookdb -f rulebookdb-`date -u +"%Y-%m-%dT%H:%M:%SZ"`.dump
$ exit
$ sudo mv /var/lib/postgresql/rulebookdb-201 /home/lvisintini/src/xwing-rulebook/backups/
$ sudo chown lvisintini:lvisintini /home/lvisintini/src/xwing-rulebook/backups/*

$ pg_restore -d zegop /home/lvisintini/Downloads/latest.dump

$ python xwing_rulebook/manage.py book_markdown URR-SWX > outputs/urr-swx.md
$ python xwing_rulebook/manage.py rules_json > outputs/rules.json
$ python xwing_rulebook/manage.py sources_json > outputs/sources.json

$ python xwing_rulebook/manage.py load_from_xwing_data

$ python manage.py download_libs

$ python xwing_rulebook/manage.py book_alpha_order URR-SWX

$ pdfimages -png x-wing_faq_v432_high_res.pdf ./images/

$ git tag -a AlanTuring-20170301 -m "Release rc_20170227"
$ git push origin AlanTuring-20170301

Link to mermaid graph Palette

About

Django project that merges all X-Wing Miniatures rules and its erratas into a single source/book/website

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published