mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-24 21:58:04 -05:00
7747ff69d0eb9b2c5a19000eda55202727cdb5cc
* Fix errors with profile_rank ENUM * Upgrade to Hasura 1.2.1 * Rename Profile to Account * Common JS package * rm app-react/lib/did * Better login management
The Game
Monorepo for the MetaGame applications, backend and databases.
Development
Install Packages
yarn
Bootstrap
cp .env.sample .env
yarn docker:start
If you want to locally start the backend server (not in docker) for development purposes, you can set this variable in the .env file:
HASURA_GRAPHQL_AUTH_HOOK=http://host.docker.internal:4000/auth-webhook
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:local
Run typechecks
yarn typecheck
Description
Languages
TypeScript
96.4%
JavaScript
2.5%
Dockerfile
0.8%
PLpgSQL
0.2%
SCSS
0.1%