Skip to content

A graphql interface using hasura and postgres for the MySQL world sample dataset

License

Notifications You must be signed in to change notification settings

twyla-ai/hasura-world-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hasura World Database Demo

Docker Repository on Quay.io

A graphql interface using hasura and postgres for the MySQL world sample dataset.

Usage Examples

For hasura configuration options and usage, please refer to their wonderful documentation here. In the following scenarios, the api and console will be available at http://127.0.0.1:8080/

Podman

You can use the Kubernetes Deployment examples to start a pod with a postgres database and hasura.

podman play kube examples/kube-deployment.yaml

Docker

In this scenario, we assume that you already have a database running that can be reached from within the container.

# obviously secret is secret here and is not intended to be "secure" as this is a demo app
docker run --rm -it -p 8080:8080 \
    -e HASURA_GRAPHQL_DATABASE_URL="postgres://hasura:hasura@postgres-host-addr:5432/hasura" \
    -e HASURA_GRAPHQL_ENABLE_CONSOLE="true" \
    -e HASURA_GRAPHQL_ADMIN_SECRET="secret" \
    quay.io/twyla-ai/hasura-world-db:latest

Releases

No releases published

Packages

No packages published