graphfront-ui
v0.3.1
Published
An admin interface for your database with a GraphQL API.
Downloads
8
Readme
graphfront-ui
An admin interface for your database with a GraphQL API.
This is a work-in-progress project. It requires a super recent version of Node.js and using it in production is not recommended.
Getting Started
An overview of GraphQL in general is available in the README for the Specification for GraphQL.
Using graphfront-ui
Install graphfront-ui from npm
npm install --save graphfront-ui
graphfront-ui provides an admin interface for your database.
First, mount the server url endpoints with:
import graphfrontRouter from 'graphfront-ui/server';
app.use('/', graphfrontRouter({ path: 'dashboard' }));
Then, in a view template at /dashboard, render a React application using:
import reactApp from 'graphfront-ui/client';
reactApp('mountNodeId');
mountNodeId
has to exist in the template's HTML
The server code expects the user to be logged in and it expects access to the database structure at db.sql
Contributing
We actively welcome pull requests, learn how to contribute.
Changelog
Changes are tracked as Github releases.
License
graphfront-ui is MIT licensed.