In this workshop, we'll be using a simple e-commerce schema and we'll use actions to add business logic: login/logout
and checkout
.
-
Create a Hasura project using
hasura init --template docker-compose
-
Get hasura and postgres running by running
docker-compose up -d
-
Copy the metadata and migrations directory from this repo
-
hasura migrate apply
-
hasura metadata apply
This will setup the ecommerce schema for you.
To get started with actions, run
hasura actions use-codegen
hasura actions create --help