Repo for Bonavoy's GraphQL API
- clone repo and
cdinto root - get secret files
- install node modules with
yarn install - run with
yarn dev
use yarn codegen to regenerate typescript types according to the graphql schemas in src/generated/graphql.ts
Run yarn test or yarn test:watch
Deployed using: https://cloud.google.com/community/tutorials/nginx-reverse-proxy-docker
- SSH into the server and
cdintobonavoy-apidirectory git pulllatest commit on main- build image with
docker build -t bonavoy-api . - Run container with:
docker run -d \
--name bonavoy-api \
-e 'LETSENCRYPT_EMAIL=bonavoydevelopers@gmail.com' \
-e 'LETSENCRYPT_HOST=api.bonavoy.com' \
-e 'VIRTUAL_HOST=api.bonavoy.com' bonavoy-api:latest
docker run -it -p <PORT>:4000 <CONTAINER_NAME>