Skip to content

PAK90/mtg-hunter

Repository files navigation

MtG Hunter; a better Magic card database.

Installation

First get Node.js. Node's package manager, npm, comes with the node installer. Then, in the project directory, install all the npm goodness.

npm install

Currently, the elasticsearch server is run locally on a Vagrant VM. You'll also need VirtualBox along with its extension pack. Once these are installed, in the source folder, start the Vagrant VM. This boots up the pre-configured Vagrant file and installs elasticsearch on it.

vagrant up

To stop it for any reason, do vagrant halt. To populate the elasticsearch server with delicious data, run the indexer script.

npm run-script index

This will print an awful lot of data, and take up to a minute. To confirm this has succeeded, use the Sense plugin for Chrome to confirm the ~16,000 cards are present. The default settings and query will do just fine (localhost:9200 and match_all).

Start npm, and the application will load on http://localhost:3333.

npm start

Card Prices

This process takes a very long time (almost an hour), but allows extended functionality inside the app.

To populate the database with card prices, make sure you first have the Babel CLI, or run npm install -g babel-cli to install it globally

Open getCardPrices.js comment out line 11, and uncomment line 12.

Then, npm run prices

About

A better Magic: the Gathering card database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •