vagmi / postgraphile-example

An example postgraphile app.

Home Page:https://docs.google.com/presentation/d/1XKqFNiJJsRlaHgdG9Umwlbk4MKmtkQlwYw8mqquzVrY/edit?usp=sharing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postgraphile example

🔨 Setup

To set this up, you'll have to do the following.

$ docker-compose run graphql bash
root@container_id:/app# ./db-reset.sh
root@container_id:/app# psql -h db -d reviews -U postgres -f seed.sql

This creates the database, roles, sets up the schema and also inserts some seed data.

🚀 Running

You can then start the GraphQL server with the following command.

$ docker-compose up graphql

You can now visit the graphiql interface at http://localhost:3000.

All this without writing a single like of JavaScript 🐒.

About

An example postgraphile app.

https://docs.google.com/presentation/d/1XKqFNiJJsRlaHgdG9Umwlbk4MKmtkQlwYw8mqquzVrY/edit?usp=sharing


Languages

Language:PLpgSQL 89.4%Language:Shell 7.5%Language:Dockerfile 3.1%