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.
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.