Featured resource
Forrester Wave Report 2025
Pluralsight named a Leader in the Forrester Wave™

Our tech skill development platform earned the highest scores possible across 11 criteria.

Learn more
  • Labs icon Lab
  • Cloud
Labs

Deploying to Google Cloud App Engine

Google Cloud App Engine provides a solid, easy-to-access platform for a wide range of web apps. Its interoperability with other Google Cloud services, such as Cloud Storage, enhance its effectiveness. In this hands-on lab, we’ll deploy an app to App Engine that allows users to upload photos and enter details into a NoSQL database, Cloud Datastore. The process requires that we set up a Cloud Storage bucket initially and then customize the `config.py` file before deploying the app.

Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 30m
Published
Clock icon Feb 21, 2019

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Enable Cloud Datastore APIs and create a Cloud Storage bucket.

    1. From the main console navigation, go to APIs and Services > Library.
    2. Search for Datastore.
    3. Select the Cloud Datastore API card.
    4. Click Enable, if displayed.
    5. Repeat steps 1-4 twice more to enable the App Engine Admin and Cloud Build APIs.
    6. From the main console navigation, choose Cloud Storage.
    7. Click Create bucket.
    8. Name the bucket uniquely and click Continue.
    9. From the Location Type options, select Region and, in the Location field, select us-central1.
    10. Click Create.
  2. Challenge

    Make the bucket contents public.

    1. Return to the Cloud Storage main Browser page.
    2. Expand the More (3 dots) menu for the new bucket, at the far right of the entry.
    3. Choose Edit bucket permissions.
    4. When the Info panel is displayed, click Add Principal.
    5. In the New principals field, enter allUsers.
    6. Click into the Select a role field, scroll down to Cloud Storage and select Storage Object Viewer.
    7. Click Save and confirm that you want to allow public access when prompted.
  3. Challenge

    Clone GitHub repository.

    1. From the Cloud Shell, issue the following command to clone the repository for this course:

      git clone https://github.com/linuxacademy/content-gcpro-developer
      
    2. Change directories to content-gcpro-developer/app-engine-lab-2/.

  4. Challenge

    Configure `config.py` file.

    1. Activate the Cloud Shell by clicking its icon in the top row.

    2. If the Cloud Shell does not display the current project ID in yellow, open the Project panel by clicking the project name in the upper-left.

    3. Copy the current project ID.

    4. In the Cloud Shell, enter the following command:

      gcloud config set project <PROJECT_ID>
      
    5. Click Open Editor.

    6. Expand the content-gcpro-developer folder and then the app-engine-labs sub-folder.

    7. Open config.py.

    8. On line 35, change PROJECT_ID to the current project, as shown in the Cloud Shell.

    9. On line 93, change CLOUD_STORAGE_BUCKET to name of the bucket previously created.

    10. Save the file.

  5. Challenge

    Deploy the app.

    1. In the Cloud Shell, deploy your app with the following code:
      gcloud app deploy
      
    2. When prompted, choose the same region as the bucket created for the lab.
    3. When prompted, enter Y to continue.
  6. Challenge

    Test the app.

    1. In the Cloud Shell, enter the code:
      gcloud app browse
      
    2. If the browser window does not open, click the generated link.
    3. When the app appears in the browser, click Add Artwork and complete the subsequent form to test the app.

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.