A demo app of a hybrid "party" and "teams" service
Run the following to get the graphql-engine
and postgres
containers started:
docker-compose up
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.
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:
- 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
- Apply the migrations - this will create the tables, indexes and foreign keys.
hasura migrate apply
- Reload the metadata - this should hopefully remove the inconsistencies created in 1) now that our tables etc. exist.
hasura metadata reload
- Apply the seeds - this will create some mock data that you can query on:
hasura seed apply