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
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)
}
- yarn
gridsome develop
to start a local dev server athttp://localhost:8080
note: This project is adapted from the default starter for Gridsome that you get when you run
gridsome create new-project
.