/Gatherer2

A better Magic: the Gathering card database.

Primary LanguageJavaScriptOtherNOASSERTION

MtG Hunter; a better Magic card database.

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