• Stars
    star
    204
  • Rank 192,063 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GraphQL runtime using PouchDB

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.

More Repositories

1

sveltekit-adapter-aws

A SvelteKit adapter for AWS using the AWS-CDK
TypeScript
135
star
2

serverless-aws-cdk-ecommerce

E-Commerce Serverless AWS-CDK Example
JavaScript
42
star
3

introduction-graphql

Introduction to GraphQL
JavaScript
28
star
4

graphql-subscriptions-sse-presence-list

GraphQL subscriptions over HTTP Server-Side-Events
JavaScript
16
star
5

introduction-nodejs

Introduction to NodeJS
JavaScript
15
star
6

reactish-elmish

Proof of Concept - RxJS + React -> Elmish
JavaScript
13
star
7

excel-couchdb-import

Import Excel Sheets to CouchDB/PouchDB
JavaScript
13
star
8

serverless-workshop-sveltekit

Serverless Workshop SvelteKit Example
TypeScript
11
star
9

introduction-react

Introduction to React
9
star
10

ReactiveMVVM

C#
9
star
11

lambda-pouch

Lambda Functions runtime on top of PouchDB
JavaScript
8
star
12

sveltekit-adapter-aws-basic-example

A basic SvelteKit example webapp using sveltekit-adapter-aws.
Svelte
7
star
13

racyjs

A blazing fast zero-configuration async server-side React with GraphQL toolbelt
JavaScript
7
star
14

introduction-kubernetes

Introduction to Kubernetes
6
star
15

introduction-aws

Hands-On introduction to Serverless using AWS-Cloud-Services via JavaScript/TypeScript
5
star
16

sveltekit-adapter-aws-advanced-example

Svelte
5
star
17

gatsby-source-modular-graphql

Gatsby source plugin which adds modularized third-party GraphQL schemas
JavaScript
4
star
18

introduction-python

An introduction to Python, Flask, Numpy, MatPlotLib and Pandas
Jupyter Notebook
4
star
19

aws-cdk-js-github-action

GitHub Action using AWS CDK for JavaScript
Dockerfile
4
star
20

tryelixir

Elixir
2
star
21

graphql-pouch-as-library

Using Express and GraphQL-Pouch as a Library
JavaScript
2
star
22

introduction-svelte

A introduction into Svelte and SvelteKit
2
star
23

aws-cdk-js-github-action-example

Simple Example using GitHub Action MikeBild/aws-cdk-js-github-action
JavaScript
2
star
24

ab-test-example

Simplified AB-Tests with MicroServices
JavaScript
2
star
25

introduction-rxjs

Introduction to Reactive Extentions for JavaScript
1
star
26

ssmenv-cli

AWS SSM Parameter-Store to Environment Variables
JavaScript
1
star
27

DotNetCodingDojoBerlin

AltNetBerlin Coding Dojo 31.03.2010
C#
1
star
28

es6-memory

ES6 Memory-Game
JavaScript
1
star
29

react-tic-tac-toe

Tic Tac Toe in React with Minimax-AI
JavaScript
1
star
30

gatsby-plugin-aws-parameter-store-environment

AWS Paramter-Store values to local Environment variables at build time
JavaScript
1
star
31

sveltekit-adapter-aws-blog-example

SvelteKit Adapter AWS Blog Example
TypeScript
1
star
32

Katas

C#
1
star
33

MathParser

MathParser Demo Project
C#
1
star
34

statemutatejs

simple projection functions, alias foldl, that mutate state on a stream of elements
JavaScript
1
star