Setup Firebase Hosting:
- Create a Firebase project
- Run
firebase login
- Run
firebase init
Deploy to Firebase Hosting:
- Add a file to the
scripts/deploy.sh
with thefrontend-deploy.sh
contents - Run
chmod +x scripts/deploy.sh
to make the file executable - Run
scripts/deploy.sh
Setup Google Cloud Run:
- Install the gcloud CLI
- Run
gcloud auth login
- Enable the Google Cloud Run API
- Enable the Google Cloud Artifacts Registry API
- A guide on setting up a Docker repository with the Artifacts Registry
- Run
gcloud auth configure-docker us-east1-docker.pkg.dev
to authenticate Docker deployments - Add a file to the
scripts/build-upload.sh
with thebackend-build-upload.sh
contents - Run
chmod +x scripts/build-upload.sh
to make the file executable - Run
scripts/build-upload.sh
Deploy to Google Cloud Run:
- Create a new service with Google Cloud Run
- Add a file to the
scripts/deploy.sh
with thebackend-deploy.sh
contents - Run
chmod +x scripts/deploy.sh
to make the file executable - Run
scripts/deploy.sh
Setup Google Cloud SQL:
- Create a PostgreSQL instance
- Update your Goolge Run deployment to connect to the Cloud SQL instance