Infra Sequence
User Browser -> Identity Platform (User auth) -> Cloud Run (Frontend) -> Firestore (DB) -> Cloud Function (Trigger) -> Cloud Run Job (Backend Job)
The Cloud Function is setup to trigger when a document is added in a migrations/
collection.
Each directory has setup instructions in their respective readme files. There is a unified setup script that will build and deploy the assets needed by executing the following in the project's root directory
Authenticate with GCP:
gcloud auth application-default login
Be sure to set your gcloud project first
gcloud config set project YOUR_PROJECT_ID
Call the setup script
./setup.sh
Links to related infra pages in GCP console