Skip to content
intermediate 75 min read ⚡ 600 XP by CMSG Team · Mar 5, 2026
gcp firebase cloud-run firestore iam

GCP & Firebase: The Sovereign Cloud Guide

Course Overview

Google Cloud Platform (GCP) Arcane Glossary Google Cloud Platform. A suite of cloud computing services that runs on the same infrastructure that Google uses internally for its end-user products. and Firebase Arcane Glossary A platform developed by Google for creating mobile and web applications, offering tools for tracking analytics, reporting and fixing app crashes. provide the most powerful developer experience in the world. In this course, you will learn to architect Production-Grade Infrastructure. You will move beyond “local dev” into the realm of Serverless Compute, NoSQL modeling, and IAM Security Rituals Arcane Glossary Identity and Access Management. A framework of policies and technologies to ensure that the right users have appropriate access to technology resources. .

Learning Objectives

  • Architect full-stack applications using the Firebase-to-GCP Pipeline.
  • Implement secure authentication with Firebase Auth.
  • Design high-performance, scalable databases using Firestore Arcane Glossary A flexible, scalable NoSQL cloud database to store and sync data for client- and server-side development. .
  • Deploy containerized applications to Cloud Run Arcane Glossary A managed compute platform that enables you to run containers that are invocable via requests or events. .
  • Master IAM (Identity & Access Management) Arcane Glossary Identity and Access Management. A framework of policies and technologies to ensure that the right users have appropriate access to technology resources. to secure your cloud assets.

Prerequisite Rituals

Verify your circle before starting

Check all to unlock lesson focus READY TO CAST

Technical Deep Dive: The Project Hierarchy

GCP is structured like a fortress:

  1. Organization: The top-level entity (usually your company).
  2. Folder: Groups of shared resources.
  3. Project: The isolated container where your billable resources (Functions, DBs) live.
  4. Service Account: The digital “Identity” that your code uses to talk to other GCP services without using user passwords.

Walkthrough: The “Sovereign Container” Ritual

Step 1: Project Initiation

Create your cloud workspace via the CLI.

gcloud projects create my-sovereign-app-99 --set-as-default
gcloud billing projects link my-sovereign-app-99 --billing-account=YOUR_ACCOUNT_ID

Step 2: Enabling the Arcane APIs

GCP services are locked by default. You must explicitly unlock them.

gcloud services enable run.googleapis.com \
                       containerregistry.googleapis.com \
                       firestore.googleapis.com \
                       cloudbuild.googleapis.com

Step 3: Containerizing your Logic

Create a simple Dockerfile for your application.

FROM node:22-slim
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
CMD ["npm", "start"]

Step 4: The Serverless Descent (Cloud Run)

Deploy your container without managing servers.

gcloud builds submit --tag gcr.io/my-sovereign-app-99/web-service
gcloud run deploy web-service \
           --image gcr.io/my-sovereign-app-99/web-service \
           --platform managed \
           --region us-central1 \
           --allow-unauthenticated

The Firebase Trinity

For web and mobile apps, Firebase acts as the “Frontend” to your GCP “Backend”:

  • Firestore: Modern NoSQL. Master the “Documents/Collections” model.
  • Auth: Handle 10+ providers (Google, Email, Phone) with zero backend logic.
  • Storage: Scalable binary file hosting (Images/Videos) with security rules tied directly to Auth.

Capstone Project: The Cloud-Native Dashboard

Build and deploy a full-stack dashboard.

  1. Use Firebase Auth for user login.
  2. Store user profile data in Firestore.
  3. Deploy a companion API to Cloud Run that fetches data from Firestore using a Service Account.
  4. Verify all requests are restricted via IAM Permissions.

The cloud is your foundation; the scale is infinite. Build for the world.

📜 The Grimoire

Progress to Adept 0%
Knowledge Acquired

No spells mastered yet...

Rank Hierarchy

Progress saved locally to your browser.

🕯️ Academy Support

Common Ritual Issues
"Node.js version not found"
Run node -v. If it's below 22.12.0, use NVM to upgrade: nvm install 22 && nvm use 22
"Build fails on Cloudflare"
Ensure you've set the NODE_VERSION environment variable to 22.12.0 in the Cloudflare Dashboard settings.
"Prerequisites not checking"
The checklists are interactive but local to your current lesson view. They help you track your own setup progress manually.

Still blocked by a technical curse?

Ask the Archmage