Monorepo for the MetaGame applications, backend and databases.
yarn
Create your local .env file
cp .env.sample .env
Initial TS Compilation For Monorepo Packages
yarn typecheck
Start backend services
yarn docker:start
- Runs docker containers for backend, Hasura Engine, and PostGres database
- will auto-restart on any changes to
packages/backend
andpackages/utils
Stop backend services
yarn docker:stop
- Stops all the containers
If you want to locally start the backend server (not in Docker) for debugging purposes:
yarn backend:dev
Set this variable in the .env file:
BACKEND_HOST=host.docker.internal:4000
Once the backend services are started, we can start the frontend application
yarn app:start
yarn web:dev
Start Hasura console
yarn hasura:console
Hasura CLI example
yarn hasura -- migrate squash 1586952135212
Generate GraphQL Types
yarn codegen generate
Reload Schema + Generate GraphQL Types (backend needs to be running)
yarn codegen update-schema
yarn docker:clean
yarn docker:start
yarn typecheck