- Docker
- Node 10
- Yarn
Open up a terminal and navigate to the root directory. Once there, run ./bootstrap.sh
from the command line. Running bootstrap.sh
should take care of most of the setup; bootstrap.sh
runs yarn
and yarn build
for each of the dependent projects.
./bootstrap.sh
docker-compose up
From root directory:
cd graphql
docker-compose up -d graphql prisma mysql # <-- ensure these are running in "UP" state first
docker-compose exec graphql sh
Once you get the prompt $ /service #
, run:
yarn prisma deploy && yarn prisma generate
exit
Finally, run in /graphql directory:
yarn build && docker-compose restart graphql
Open http://localhost:3000 in your favorite browser.
GraphQL Playground: http://localhost:4000/graphql