KingSupernova31 / RulesGuru

The source for rulesguru.net, a resource for Magic judges.
https://rulesguru.net/
8 stars 6 forks source link
mtg mtg-cards

RulesGuru

The source code for RulesGuru, a resource for Magic judges and rules-oriented players.

If you have a bug report or feature request, feel free to open an issue or comment on an existing one. However, pull requests will only be accepted if you're a member of the RulesGuru project. See here for more information.

Wizards of the Coast is constantly releasing more cards, often with new layouts and abilities that we want to support as soon as possible. Scalability and versatility are therefore a high priority for new features, and code should keep future maintainability in mind.

Setup

To run a local version of RulesGuru, you'll need Node.js 16 or greater. Download the files from this repository and run npm install in that directory to install the required node modules. Then download and generate RulesGuru's data files with node updateDataFiles.js. (This has to download card data and may take several minutes.) You can then start all scripts running with npm start or run only the server with node server.js. (Note that the server takes around 30 seconds to start). To stop the full pm2 suite from running, use npm stop. To run all tests, use npm test. (A full test suite has not been set up though.) Access the local website at http://localhost:8080.

Certain files in this repository contain placeholder data as detailed below: