Mafia-Game Backend

Backend for Mafia-Game

Installation

$ yarn

Running the app

# start build
$ yarn start

# watch mode
$ yarn start:dev

# build
$ yarn build

# format using Prettier
$ yarn format


# lint using ESLint
$ yarn lint

Tech Stack:

  • Koa(Node.js)
  • GraphQL
  • MongoDB

GraphQL:

url: localhost:PORT/graphql

Query example

{
  user(id: "USER_ID") {
    name
  }
}

Result:

{
  "data": {
    "user": {
      "name": "test_user"
    }
  }
}

Examples

How to setup a powerful API with GraphQL, Koa and MongoDB

Apollo docs

koa-graphql repo

Graphql-server