mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-25 06:08:03 -05:00
5cfd7d88dde40262424c35e7b5186a910e76e50a
This will automatically restart the backend server in docker anytime there are changes to the original source files instead of copying over when running in dev mode. In production, it will still do the normal copy/build.
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
- Runs docker containers for backend, Hasura Engine, and PostGres database
- will auto-restart on any changes to
packages/backendandpackages/utils
Stop backend services
yarn docker:stop
- Stops all the containers
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%