Home

Awesome

Hasura Typescript Boilerplate

Boilerplate templates

This is project template for Hasura v2.0 that is in beta stage. Use at your risk.

The auto-migration and CLI are v3. You need to download directly from Github releases page

NOTE: These templates are in sample repository. You should checkout which feature you need (JWT, Firebase). master branch contains clean structure, so there aren't any migration.

  1. Base Project
  1. JWT Authentication
  1. Firebase Authentication
  1. Extras

Project Structure

Database design and migration

Use Hasura CLI: https://docs.hasura.io/1.0/graphql/manual/hasura-cli/install-hasura-cli.html#install

hasura console --admin-secret [secret] --endpoint [endpoint]
hasura migrate apply --admin-secret  [secret] --endpoint [endpoint]

How to Run

# start development dockers
make dev
# because docker caches built images, when changing packages, we need to rebuild containers
make dev-build
make staging
# or
make prod

Advanced guidelines