mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-24 13:47:57 -05:00
d76fb891f11f8b3a682b4641b11efd4414feac6e
The Game
Monorepo for the MetaGame applications, backend and databases.
Development
Install Packages
yarn
Bootstrap
Create your local .env file
cp .env.sample .env
Run services
Start backend services
yarn docker:start
If you want to locally start the backend server (not in docker) for development purposes:
yarn start:backend:dev
Set this variables in the .env file:
HASURA_GRAPHQL_AUTH_HOOK=http://host.docker.internal:4000/auth-webhook
HASURA_ACTION_BASE_ENDPOINT=http://host.docker.internal:4000/actions
Tooling
Start Hasura console
yarn hasura:console
Hasura CLI example
yarn hasura -- migrate squash 1586952135212
Generate GraphQL Types
cd packages/graphql-codegen
yarn generate
Restart with fresh database
yarn docker:clean
yarn docker:start
Run typechecks
yarn typecheck
Description
Languages
TypeScript
96.4%
JavaScript
2.5%
Dockerfile
0.8%
PLpgSQL
0.2%
SCSS
0.1%