NestJS starter with docker setup ( Dockerfile
& .dockerignore
) for automated deploy on Google Cloud Run with Cloud Build on git push.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run prestart:prod
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Configure the Google Cloud SDK, build and push the first image version to Google Container Registry either locally with docker or with Cloud Build, then deploy the first revision to Cloud Run.
Every subsequential build can be automated on new push on a given branch, the cloudbuild.yaml
file is already in place but the other setup steps need to be done manually.