npalm / graphql-postgraphile-sample

GraphQL example to expose a GraphQL API via postgraphile direct on PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL API Server for PostgreSQL

Example to put a GraphQL API server on top of PostgreSQL based on the schema used in graphql-java-demo.

Setup

First start the services via docker-compose

docker-compose up -d 

Once ready you should be able to access the Java GraphQL API via http://localhost:8080/playground. Next start postgraphile

yarn && yarn start

or (npm install && npm start)

Go to http://localhost:5000/graphiql to checkout the GraphQL API.

About

GraphQL example to expose a GraphQL API via postgraphile direct on PostgreSQL

License:MIT License