See the live version of the site here!
Pauper Commander / Pauper Dragon Highlander is a Magic the Gathering format that is a cross between Pauper and EDH (commander).
Check out the rules at the PDH Homebase.
PDHREC is based on the website EDHREC, a website that recommends cards for use in commander decks.
After collecting deck information from thousands of decks, users can see what the best cards are for any particular deck, or for a particular color.
- Clone the repository with
git clone https://github.com/origamiimaster/pdhrec.git
. - Get a connection string for the MongoDB instance you want to use. A
straightforward method is to create an account with MongoDB Atlas, the
free tier will be plenty for running PDHREC. Create a file in the
pdhrec
folder calledserver-token.json
and fill it with{"connection": "YOUR CONNECTION STRING HERE"}
- Install eleventy, a static
site generator. The build script uses a global install, so run
npm install -g @11ty/eleventy
after making sure you have NodeJS. - Run the
generate_frontend_doc.py
first. It will take some time as it gathers all of the data from the different sources, and saves it into the database for the first time. - Navigate into the
frontend
folder, and run the shell script./build.sh
. On windows, you can empty the build folder and then runeleventy --formats=html,css,js,liquid,md --output=build
. - Host the static site with your favorite hosting services, for development the simple
python3 -m http.server --directory build
works great. - Open a web browser and navigate to 127.0.0.1:8000.