1. Set Up
Copy .env.example content to a new file '.env'
cd backend
npm install
docker-compose up
npm run sync
2. Run Backend
docker-compose up
npm run console
Changes in the Hasura console create new migration folders.
Each has two files:
down.sql - for rollbacks
up.sql script that was run to make the update
After every change - check that the necessary script appears in relevant down.sql,
since this file is not always generated correctly.
After every pull - update Hasura locally:
npm run sync