Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 785 Bytes

README.md

File metadata and controls

45 lines (33 loc) · 785 Bytes

1.1 ENV variables

Copy .env.example content to a new file '.env'

1.2. Install Packages

cd backend
npm install

1.3 Initialize Database

docker-compose up
npm run sync

2.1. Start Hasura

docker-compose up
npm run console

2.2 Changes in Hasura

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