This is a super simple node server for providing auto complete functionality for Magic the Gathering Card Names.
Demo: http://automagically.herokuapp.com/search?query=garruk
To run the project:
node bin/www
The server will default to starting up at localhost:3000
The Server has only one API route:
/search
If you provide no query param for the autocomplete, it will return back the full list of cards.
Otherwise just provide a query param to do a naive autocomplete search for that card. e.g.
/search?query=garruk
Will Return the following:
[
"Garruk Wildspeaker",
"Garruk, Apex Predator",
"Garruk, Caller of Beasts",
"Garruk's Horde",
"Garruk's Companion",
"Garruk's Packleader",
"Garruk, Primal Hunter",
"Garruk Relentless",
"Garruk, the Veil-Cursed"
]
The