Koa 2 + 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 is good for your first version of GraphQL, but do not scale well when you need to customize your schema
Command
Setup
npm install
Develop
# using nodemon
npm start
# using babel-watch
npm run watch
Test
npm test
Dependencies
- Watcher and hot-reload: nodemon
- Test:
- Build: babel
- 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.