Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/entria/koa-passport-mongoose-graphql
- Owner: entria
- Created: 2016-04-01T12:01:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-07T03:48:59.000Z (over 6 years ago)
- Last Synced: 2024-10-31T08:42:13.804Z (13 days ago)
- Topics: boilerplate, graphql, koa, passport
- Language: JavaScript
- Size: 92.8 KB
- Stars: 193
- Watchers: 12
- Forks: 29
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
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)