graphfront-ui

0.3.1 • Public • Published

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.

npm version

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.

Readme

Keywords

Package Sidebar

Install

npm i graphfront-ui

Weekly Downloads

0

Version

0.3.1

License

MIT

Unpacked Size

66.2 kB

Total Files

30

Last publish

Collaborators

  • samer