koa-passport-mongoose-graphqlKoa 2 server with Passport + Mongoose + GraphQL

联合创作 · 2023-09-18 22:42

Koa 2 + Passport + Mongoose + GraphQL

Build Status

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.

Reference

浏览 7
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报