A REST API for the Chaotic TCG
Go to file
2020-04-18 21:59:40 -04:00
api api 2020-04-07 15:58:38 -04:00
assets api 2020-04-07 15:58:38 -04:00
db api 2020-04-07 15:58:38 -04:00
.gitignore db import script 2020-04-06 23:13:46 -04:00
LICENSE.txt init repo 2020-04-18 21:59:40 -04:00
package-lock.json api 2020-04-07 15:58:38 -04:00
package.json api 2020-04-07 15:58:38 -04:00
README.md init repo 2020-04-18 21:59:40 -04:00

Chaotic Trading Card Game API

A repository of Chaotic Trading Card Game assets and out-of-the-box api solution for aggregating card data.

Getting Started

To set up the API, begin by cloning the repository and installing dependencies.

$ git clone https://github.com/unitehenry/chaotic-api

$ cd chaotic-api

$ npm install

Importing Data

This API uses MongoDB to store card data. Create an environment variable DATABASE_URL and add the url to the mongoDB server. Then run the import script.

$ echo "DATABASE_URL=mongodb://localhost/chaotic" > .env

$ npm run import

Starting the Server

After the card data has been imported, you can begin serving data with the API server.

$ npm run serve