This is the monorepo of twreporter congress dashboard. This monorepo containing follow sub-packages:
- @twreporter-congress-dashboard/frontend: see
packages/frontend
- @twreporter-congress-dashboard/cms: see
packages/cms
We use lerna v8 with yarn workspace
to manage this monorepo.
Please refer to lerna document for the cli commands details.
We use yarn
for dependency management.
Please install dependencies on root before execution.
$ yarn install
- add sub-package under
/packages
folder - add sub-package info in this
README.md
We use GCP cloud run
to serve the congress dashboard, and use cloud build
to trigger the CI/CD process.
To add new service in this project, please add following configuration:
- add
Dockerfile
under your sub-package folder a.cloudbuild.yaml
would execute thedocker build
command for target package - configure your service on
cloud run
- add trigger to
cloud build
a. please usecongress-dashboard-cloud-build
service account b. don't forget to addsubstitutions
c. don't forget to addpackages/<sub-package name>/**
to included files filter - add your service in the
load-balancer
- configure DNS setting on
cloudflare