P&T is a table-top role-playing game. Think of a RPG like Dungeons & Dragons, but instead of needing books and character sheets, the app takes care of everything for you. It provides a tactical combat map and makes it easy for players and the Game Master to use their abilities and skills.
MIT-licensed: http://opensource.org/licenses/MIT
To start the backend (this defaults to serving on all network interfaces on port 1337):
WARNING: the "--saved-games" argument specifies a directory that users of the web endpoint will be able to write arbitrary files to (for now).
cd ptrpi
cargo run -- --saved-games ./sample_games/ --load-game testgame.yaml --modules ./modules/
This will start an RPI server which will load & save games to the sample_games
directory, and
automatically load up the testgame.yaml
file as the initial state.
To build the UI, you must have npm installed (ideally npm >=5).
cd ptui
npm install
npm run dev
That will start the frontend server. Hit it at http://localhost:5173/, and add ?mode=GM
to see the
Game Master UI.