This is the API powering both our game and website. It exposes a GraphQL API endpoint you can access at http://localhost:7000/graphql.
You must have MySQL installed as this project makes use of it. You can plug in PostgreSQL; if you desire to do so, just remove the MySQL package, install pg
and update the knexfile.js to use the package instead of mysql
.
- Clone the repository.
- Install the required dependencies
$ npm install
. - Update the database configuration on knexfile.js.
- Run the database migrations
$ knex migrate:latest
. - Start the server
$ npm start
.