Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.4 KB

README.md

File metadata and controls

48 lines (30 loc) · 1.4 KB

Parteams Demo App

A demo app of a hybrid "party" and "teams" service

Requirements

Getting started

Run the following to get the graphql-engine and postgres containers started:

docker-compose up

Following along

You can follow the corresponding blog article to get the metadata/migrations/seeds set up yourself. Alternatively, see the below section to apply the included migrations and metadata.

Apply migrations and metadata

If you don't want to follow the blog article, or just want to get the "Parteams" service up and running, you can run the following commands:

  1. Apply the metadata - note: this will result in inconsistencies whilst the database doesn't have the correct tables set up (we need to apply metadata first so Hasura knows where to look for the database).
hasura metadata apply
  1. Apply the migrations - this will create the tables, indexes and foreign keys.
hasura migrate apply
  1. Reload the metadata - this should hopefully remove the inconsistencies created in 1) now that our tables etc. exist.
hasura metadata reload
  1. Apply the seeds - this will create some mock data that you can query on:
hasura seed apply