Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/entria/koa-passport-mongoose-graphql

Koa 2 server with Passport + Mongoose + GraphQL
https://github.com/entria/koa-passport-mongoose-graphql

boilerplate graphql koa passport

Last synced: 6 days ago
JSON representation

Koa 2 server with Passport + Mongoose + GraphQL

Awesome Lists containing this project

README

        

# Koa 2 + Passport + Mongoose + GraphQL

[![Build Status](https://travis-ci.org/sibelius/koa-passport-mongoose-graphql.svg?branch=master)](https://travis-ci.org/sibelius/koa-passport-mongoose-graphql)

## Notice
You want build a more flexible GraphQL schema, consider using this boilerplate instead: https://github.com/sibelius/graphql-dataloader-boilerplate

[graffiti-mongoose](https://github.com/RisingStack/graffiti-mongoose) is good for your first version of GraphQL, but do not scale well when you need to customize your schema

## Command

#### Setup
```bash
npm install
```
#### Develop
```bash
# using nodemon
npm start

# using babel-watch
npm run watch
```

#### Test
```bash
npm test
```

## Dependencies

- Watcher and hot-reload: [nodemon](http://nodemon.io/)
- Test:
+ [mocha](https://mochajs.org/)
+ [should](https://github.com/shouldjs/should.js)
+ [supertest](https://github.com/visionmedia/supertest)
- Build: [babel](http://babeljs.io/)
+ tools: babel-register
+ presets: babel-preset-es2015-node5
+ plugins: transform-async-to-generator, syntax-async-functions
- *Lint*:
You can choose the lint tool that you prefer.

## Reference

- [koajs/koa#533](https://github.com/koajs/koa/issues/533)
- [koajs/koa#596](https://github.com/koajs/koa/issues/596)