2020-07-13 11:19:48 -06:00
2020-07-13 11:11:04 -06:00
2020-07-13 11:11:04 -06:00
2020-06-08 00:49:39 -06:00
2020-04-16 10:20:15 +02:00
2020-07-12 11:41:52 -06:00
2020-07-13 11:06:24 -06:00
2020-06-08 00:49:39 -06:00
2020-07-13 11:11:04 -06:00
2020-07-13 11:11:04 -06:00
2020-07-13 11:06:24 -06:00
2020-07-13 11:11:04 -06:00

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/backend and packages/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

Run web app

Once the backend services are started, we can start the frontend application

yarn app:start

Tooling

Start Hasura console

yarn hasura:console

Hasura CLI example

yarn hasura -- migrate squash 1586952135212

Hasura CLI documentation

Generate GraphQL Types

cd packages/graphql-codegen
yarn generate

Restart with fresh database

yarn docker:clean
yarn docker:start

Run typechecks

yarn typecheck
Description
No description provided
Readme 304 MiB
Languages
TypeScript 96.4%
JavaScript 2.5%
Dockerfile 0.8%
PLpgSQL 0.2%
SCSS 0.1%