A dockerized middleware solution for providing Pathfinder Reference Document data. The middleware solution takes a dataset in ods format, parses it into Javascript objects and then inserts them into a MongoDB database. Data from the MongoDB database can then be accessed through a GraphQL interface.
All data that is currently present in this repository, and thus is used by the middleare solution itself, comes from The Pathfinder Community.
When starting the middleware solution, all data inside the input folder will be parsed to a JSON format, which is then used to populate the MongoDB database.
The middlware solution expects the following files to be present in the input folder.
- monsters.ods
- feats.ods
- spells.ods
The files should be a one-on-one copy from the downloads available from the link above.
Because this is all Docker ready, along with a docker-compose file, all you'll need to do is execute some commands, namely:
docker-compose build
followed by docker-compose up
If you want it all to run on a different port, feel free to change some stuff in the docker-compose.yml file.