• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

MikeBild/graphql-pouch: GraphQL runtime using PouchDB

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

MikeBild/graphql-pouch

开源软件地址(OpenSource Url):

https://github.com/MikeBild/graphql-pouch

开源编程语言(OpenSource Language):

JavaScript 99.7%

开源软件介绍(OpenSource Introduction):

GraphQL-API runtime on top of PouchDB

Build Status Package on npm

A GraphQL-API runtime on top of PouchDB created by GraphQL shorthand notation as a self contained service with CouchDB synchronization.

Objectives - evaluating for your project

  • Frontend-First-Driven approach without backend/database migrations
  • Friendly GraphQL shorthand notation spec to create typed data model definitions fast and easy
  • Self-contained // no infrastructure dependencies // no lock in
  • Customizable for seamless integration of existing resources

Usage

First install using npm:

npm install -g graphql-pouch

and then just run it!

graphql-pouch

For more information run:

graphql-pouch -h

##GraphiQL UI for development becomes standard

GraphiQL is a awesome web based tool by Facebook to let you interactively explore your data and your API. When development mode is enabled in GraphQL-Pouch, the GraphiQL interface will be automatically displayed at your GraphQL endpoint.

Example

graphql-pouch --development
Listen on port 3000
CouchDB sync URL: none
Relay enabled: true
Development mode: true
JWT-Authentication: false

Supported GraphQL schemas:
cms initialized and running - http://127.0.0.1:3000/graphql/cms

Navigate to the URL printed to your console after starting GraphQL-Pouch and use GraphiQL to fetch your data. When you want to use GraphQL-Pouch in production mode, the GraphiQL-App is ideally suited.

GraphQL and Relay

Check out the CMS example for a demo of GraphQL-Pouch, Relay and React in action.

Benefits

GraphQL-Pouch uses the joint benefits of PouchDB and GraphQL to provide a number of key benefits.

Roadmap

In the future, things that GraphQL-Pouch will include:

  • HTTPS Support
  • Mock/Fake data results
  • Runtime traceability using resolver timings
  • Role based authorization
  • MongoDB query language inspired subselections
  • DataLoader for batching and caching optimization
  • Subscriptions using PouchDB change notifications

and, of course:

  • better documentation
  • better validation and error messages
  • better debug logs
  • more tests
  • more examples

Run Tests

npm install
npm test

Development

npm run dev

Contributors

Check them out here

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker.

License

This project is licensed under the MIT license. See the LICENSE file for more info.

Thanks

You like this GraphQL server and you want to see what coming next? Follow me on Twitter @mikebild.

Enjoy!

Credits

Thanks to Matthew Mueller for his initial work on graph.ql which laid the groundwork for the GraphQL shorthand notation parser module.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
neo4j-graphql/neo4j-graphql-java: Pure JVM translation for GraphQL queries and m ...发布时间:2022-06-13
下一篇:
NathanRSmith/graphql-visualizer发布时间:2022-06-13
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap