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
First install using npm:
npm install -g graphql-pouch
and then just run it!
graphql-pouch
For more information run:
graphql-pouch -h
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.
Check out the CMS example for a demo of GraphQL-Pouch, Relay and React in action.
GraphQL-Pouch uses the joint benefits of PouchDB and GraphQL to provide a number of key benefits.
In the future, things that GraphQL-Pouch will include:
and, of course:
npm install
npm test
npm run dev
Check them out here
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.
This project is licensed under the MIT license. See the LICENSE file for more info.
You like this GraphQL server and you want to see what coming next? Follow me on Twitter @mikebild
.
Enjoy!
Thanks to Matthew Mueller for his initial work on graph.ql which laid the groundwork for the GraphQL shorthand notation parser module.