A REST-like node.js api to provide JSON data about cards, equipment, boosters, sets, etc. for the HEX TCG with data parsed from games files by doc-x for his search engine. The information presented through this API about HEX is copyrighted by Cryptozoic Entertainment. This project is not produced, endorsed, supported, or affiliated with Cryptozoic Entertainment. All code and data compromising this API is provided without warranty.
This API serves static JSON data like names, sets, rarities and more for most of the cards, pieces of equipment, champions, mercenaries and everything else the game files include at that time. It is updated daily by parsing search results from doc-x' search engine, which you can find here. As most of the time this API does not differentiate between cards and other types of things, the term 'objects' is used instead. So whenever 'objects' are referenced in this documentation, it can be either a card, an item, a piece of equipment, etc.
npm install (make sure you have node.js and npm installed)
To run the migration you need a PostgreSQL database set up with credentials specified in
/config/env/development.js, which is also the default environmental config if
NODE_ENV is not set. Feel free to change them.
knex migrate:latest (assuming knex is globally installed)
npm run update starts a script which actually does all the work in terms of updating the data for all cards, pieces of equipment, etc.
npm test runs a few unit and integration tests.
Starts the API at
<port> being 3000 as a default as specified in either
/config/default.js or specific to your environment in