Skip to content

byuibigdata/google_cloud_platform

Repository files navigation

Introduction to Google Cloud Platform (GCP) and Publishing your App

Introduction and Directions to get Connected to GCP as a student. Then an example of how to publish your app.

This material uses Polars and focuses Streamlit and dash boarding to introduce the data science app development process.

GCP Setup

Sign Up

You must have a Google Account to use education credits. If you don't have a Google Account, you can create one.

Get Credits

I will send a message from as follows (except the link will work).

Dear Students,

Here is the URL you will need to access in order to request a Google Cloud coupon. You will be asked to provide your school email address and name. An email will be sent to you to confirm these details before a coupon is sent to you.

[Student Coupon Retrieval Link]()

* You will be asked for a name and email address, which needs to match your school domain. A confirmation email will be sent to you with a coupon code.
* You can request a coupon from the URL and redeem it until: 1/8/2026
* Coupon valid through: 9/8/2026
* You can only request ONE code per unique email address.

Thanks,

Mr. John Hathaway

After you click on the link, you will get a second email with the code.

Dear
Jimmy,

Here is your Google Cloud Coupon Code:
0EV1-U46r-DRTF-F1V6

Click
[here]()
 to redeem.

Course/Project Information
Instructor Name:
Email Address:
School:
Brigham Young University-Idaho
Course/project:
Big Data Programming
Activation Date:
9/8/2025
Redeem By:
1/8/2026
Coupon Valid Through:  9/8/2026

If you have any questions, please contact your course instructor as listed above.

Thanks,
Google Cloud Education Programs Team

After clicking the here link, you can enter the coupon code to get the credits assigned to your account.

Setup your GCP app

What is Cloud Run

Cloud Run is a managed compute platform that enables stateless containers which are web accessible. Cloud Run is serverless which allows us to more cost effectively handle infrastructure management (in time and money).

The developer workflow in Cloud Run can be done using VS Code:

  1. Containerize an app using Docker and run the container with Docker Desktop
  2. Build and test the app locally
  3. Push the image to Google Artifact Registry
  4. Deploy the containerized app to Cloud Run

With Cloud Run, you can use two types of workflow: container-based workflow or a source-based workflow.[^1] We will be using the container-based workflow.

Deploying from the Web Terminal with a Github Repo

  1. Push your Docker established repository to Github
  2. After logging into your account go to the GCP Console.
  3. Select Cloud Run from the hamburger menu on the top left (see picture).
  4. Now you can Deploy a Web Service using Connect repository (Github)
  5. Select your options and connect your repo.
  6. Let it build (this can take a few minutes)

You can see this repository's app hosted on Cloud Run here (assuming I still have some free credits).

Visual Studio Code Extensions

You can use Managing Extensions in Visual Studio Code to learn how to install extensions. Managing Extensions in Visual Studio Code provides more background on extensions if needed. We will use the following extensions;

Repository Files

  • Dockerfile is the build script for our Docker Image
  • docker-compose.yml provides an easy way to start our docker container. Docker Compose is 'the key to unlocking a streamlined and efficient development and deployment experience.'
  • requirements.txt is run from the Dockerfile and installs the needed Python packages.
  • README.md is this file. The YAML at the top is necessary for the Streamlit app to work correctly. Specifically the app_port: 8501 is needed. All other information can and should be manipulated.
  • [streamlit.py] is our Streamlit app.

References

I build trainings a bit like AI. I steal a bunch of stuff from other websites. This is the list of websites I used to train myself.

About

Introduction and Directions to get Connected to GCP as a student. Then an example of how to publish your app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published