An open API service indexing awesome lists of open source software.

https://github.com/marknjunge/graphql-node.js-sample

A GraphQL backend sample app written in Node.js.
https://github.com/marknjunge/graphql-node.js-sample

Last synced: 12 months ago
JSON representation

A GraphQL backend sample app written in Node.js.

Awesome Lists containing this project

README

          

# GraphQL Node.js Sample

![Heroku](http://heroku-badge.herokuapp.com/?app=graphql-sample&style=flat)

A GraphQL backend sample app written in Node.js.

A live version can be found at https://graphql-sample.herokuapp.com/

## Architecture

## Installation

```
git clone https://github.com/MarkNjunge/GraphQL-Node.js-sample.git
cd GraphQL-Node.js-sample && yarn
```

Add a **.env** file in the root path. See [.env.sample](/.env.sample)

## Usage

1. Run using `yarn start` or `yarn server` for a live server.
2. The GraphQL endopoint will start on `localhost:3000/graphql`. In browser IDEs are available at `localhost:3000/playground` (preferred) and `localhost:3000/graphiql`.
Subscriptions will only work using Graphiql.