Skip to content
Star
478
Star
478

Simple ETL

This guide shows you how to work with GCP Cloud SQL and Firebase Cloud Functions locally using Docker Compose and Python. This lab demonstrates how to process a CSV upload via a Cloud Storage trigger and insert records into PostgreSQL.

  1. Setup Environment:

    Open VS Code in the project folder and execute this command in the Command Palette:

    Terminal window
    > Dev Containers: Reopen in Container
  2. Start Firebase Emulators:

    Terminal window
    firebase emulators:start
  3. Run the Example:

    Terminal window
    python main.py

Open the Firebase Emulator UI and verify the uploaded file and function logs:

Terminal window
http://localhost:4000/storage
Terminal window
http://localhost:4000/functions
Terminal window
docker compose down -v