๐Ÿ“ฆ leonardomso / graphql-mongodb-server

๐Ÿ“„ README.md ยท 41 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41<h1 align="center">
<br>
  <a href="https://github.com/leonardomso/xo"><img src="https://i.imgur.com/C4X4AUB.png" alt="GraphQL MongoDB Server" width="128"></a>
<br>
<br>
GraphQL MongoDB Server
</h1>

<p align="center">A server boilerplate using GraphQL and MongoDB.</p>

<p align="center">
  <a href="http://makeapullrequest.com">
    <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square" alt="PRs Welcome">
  </a>
  <a href="https://opensource.org/licenses/MIT">
    <img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="License MIT">
  </a>
</p>

<hr />

## Introduction

This is a server boilerplate using GraphQL and MongoDB. Support subscriptions using GraphQL Yoga. 

## Getting started

1. Clone this repo using `https://github.com/leonardomso/graphql-mongodb-server.git`
2. Move to the appropriate directory: `cd graphql-mongodb-server`.
4. Run `yarn` or `npm install` to install dependencies.
5. Set `.env` file with your mongoURI.
6. Run `npm start` to see the example app at `http://localhost:4000/playground`.

## Commands

- `npm start` - start the playground at `http://localhost:4000/playground`

## License

MIT license, Copyright (c) 2018 Leonardo Maldonado.