Skip to content

Skeleton Project for Using Gridsome with a Dgraph backend. Exploring offline-first possibilities and convenient data schema definitions and mutation patterns.

Notifications You must be signed in to change notification settings

st-ax/gridsome-dgraph

Repository files navigation

Gridsome Dgraph

This is a simple skeleton app that initializes a Dgraph DB with mockdata,
Renders the data from Dgraph into an expandable JSON tree,
and offers editing via vue-editable-grid.

Including:
Dexie.js The offline-first via Dexie(idb) is still very early WIP.
dgraph-js-http
vue-editable-grid

Configuration

You need to point dgraph at your alpha endpoint by adapting the .env file
to include the GRIDSOME_DGRAPH_URL variable:

GRIDSOME_DGRAPH_URL=https://your.dgraph.endpoint

which is used here in dgraph.js:

function newClientStub() {
    return new dgraph.DgraphClientStub(process.env.GRIDSOME_DGRAPH_URL)
}

To run the project in dev mode (from the root of the project directory)

  1. yarn
  2. gridsome develop to start a local dev server at http://localhost:8080

note: This project is adapted from the default starter for Gridsome that you get when you run gridsome create new-project.

About

Skeleton Project for Using Gridsome with a Dgraph backend. Exploring offline-first possibilities and convenient data schema definitions and mutation patterns.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published