Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

matt-riley/gql_boilerplate

Repository files navigation

GraphQL Boilerplate

last commit Commitizen friendly license

maintainability CodeFactor codebeat badge Total alerts Language grade: JavaScript

dependencies Known Vulnerabilities

FOSSA Status

Remix on Glitch

The purpose of this repo is to provide me with a simple boilerplate for setting up a GraphQL service.

It's 'fully featured' in so much as the correct Babel plugins, directory structure and very, very basic setup is complete.

How to use

Click the Use this template button (or here) and fill in all of the relevant fields.

Clone your new repository.

Go into the directory which contains the boilerplate:

cd <name_of_your_directory>

Install all of the packages:

npm install

Start the server:

npm start

This will start the server locally and GraphQL Playground will be available at http://localhost:3000

The only query possible with this boilerplate is:

{
  me
}

The response should be:

{
  "data": {
    "me": "foobar"
  }
}

An example instance can be found here.

For more examples using this boilerplate have a look in the GraphQL Examples repo.