Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

janhq/app-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

app-backend

  1. Run docker up
docker compose up
  1. Install HasuraCLI

  2. Open Hasura Console

cd hasura && hasura console
  1. Modify Data / Authorization / Actions / Remote Schemas / Events
  2. Hasura Migration (using command)
# Apply all
hasura migrate apply

# Create new migration
hasura migrate create "migration_name" --from-server
# Apply migration without executing (migrate from an existing db)
hasura migrate apply --version "<version>" --skip-execution
# Apply new migration
hasura migrate apply --version "<version>"

Migration status

 hasura migrate status
VERSION NAME SOURCE STATUS DATABASE STATUS
1590493510167 init Present Present
1590497881360 create_table_public_address Present Present
  1. Export Metadata
# Export current metadata
hasura metadata export

# Apply metadata
hasura metadata apply
  1. Add a checkpoint to version control
git add .
git commit -m "initialize migrations and metadata"
  1. Create seeds
hasura seed create collectionsSeed --from-table products
  1. Apply seed
# Apply all seeds on the database:
hasura seed apply

# Apply only a particular file:
hasura seed apply --file 1692710119690_productsSeed.sql

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published