Navigation Menu

Skip to content

A RESTllike web api to provide static JSON data for cards, items, etc. of Cryptozoic's tcg HEX built with node.js and koa.js. HEX is dead now, so is this project :(

License

maximumstock/hex-database-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hex-database-api

NOTE: The HEX TCG was shut down, so is this project.


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.

Installation

npm install (make sure you have node.js and npm installed)

Migration

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)

Fetch data

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.

Test

npm test runs a few unit and integration tests.

Start API

Starts the API at localhost:<port> with <port> being 3000 as a default as specified in either /config/default.js or specific to your environment in /config/env/<env-file>

npm start

About

A RESTllike web api to provide static JSON data for cards, items, etc. of Cryptozoic's tcg HEX built with node.js and koa.js. HEX is dead now, so is this project :(

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published