- 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 upFrom root directory:
cd graphql
docker-compose up -d graphql prisma mysql # <-- ensure these are running in "UP" state first
docker-compose exec graphql shOnce you get the prompt $ /service #, run:
yarn prisma deploy && yarn prisma generate
exitFinally, run in /graphql directory:
yarn build && docker-compose restart graphqlOpen http://localhost:3000 in your favorite browser.
GraphQL Playground: http://localhost:4000/graphql