• Stars
    star
    143
  • Rank 256,954 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 7 years ago

Reviews

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

Repository Details

Generate a GraphQL schema for any PostgreSQL database using the database schema information

Graphfront

Use a PostgreSQL database schema information to generate a GraphQL schema.

This is a work-in-progress project. It requires a super recent version of Node.js and using it in production is not recommended.

Build Status npm version

Getting Started

An overview of GraphQL in general is available in the README for the Specification for GraphQL.

Using Graphfront

Install Graphfront from npm

npm install --save graphfront

Graphfront provides two important capabilities: generating a GraphQL schema, and exposing an HTTP handler to server requests for that schema.

First, generate a GraphQL schema based on a database schema.

import { generator } from 'graphfront';

const { getSchema } = generator(dbPool, apiKeyValidator);

This defines a function that can be invoked to generate a schema.

Or you can use request handler that automatically generates the schema

const graphfront = require('graphfront');

const graphfrontHTTP = graphfront({
  dbPool,
  apiKeyValidator: (apiKey) => apiKey === 'SuperSecretKey'
});

app.use('/my-api', graphfrontHTTP);

Contributing

We actively welcome pull requests, learn how to contribute.

Changelog

Changes are tracked as Github releases.

License

Graphfront is released under the MIT license.

More Repositories

1

ngs

Node.js: Getting Started
JavaScript
445
star
2

learn-fullstack-javascript

For help, ask in #questions at jscomplete.com/help
429
star
3

graphql-in-action

A GraphQL project with a backend component written with GraphQL-js and Apollo Server and a frontend component written in React.
JavaScript
412
star
4

advanced-nodejs

For help, ask in #questions at slack.jscomplete.com
JavaScript
304
star
5

advanced-react

For help, ask in #questions at slack.jscomplete.com http://slack.jscomplete.com/
JavaScript
193
star
6

rgs-star-match

JavaScript
106
star
7

reactful

An opinionated CLI for full-stack server-rendered React applications
JavaScript
105
star
8

react-native-essential-training

JavaScript
86
star
9

rgs-template

JavaScript
85
star
10

graphfront-ui

A multi-user admin interface on database schemas with a GraphQL API - Powering https://graphfront.com/
JavaScript
79
star
11

name-contests

52
star
12

learning-graphql-and-relay

For help, ask in #questions at slack.jscomplete.com
JavaScript
29
star
13

mnr

MNR (MongoDB, Node.js, React.js)
TypeScript
26
star
14

react-blog-example

JavaScript
24
star
15

express-webpack-template

JavaScript
23
star
16

node-bb

JavaScript
17
star
17

react-virtual-dom-demo

React's Virtual DOM demo
16
star
18

learning-reactjs

For help, ask in #questions at slack.jscomplete.com
JavaScript
13
star
19

graphql-makers

Functions to make GraphQL types based on schema-language definitions.
TypeScript
11
star
20

azdev

Code repo for https://az.dev
TypeScript
9
star
21

node-react-template

Server-render ready Node/React template
JavaScript
6
star
22

example-graphql-mongodb-schema

For help, ask in #questions at slack.jscomplete.com
JavaScript
4
star
23

graphql-project

For help, ask in #questions at slack.jscomplete.com
JavaScript
2
star
24

mngr

Learning Fullstack JavaScript Development: MongoDB, Node.js, and React.js
HTML
1
star