Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Labs

Deploying an App Engine Application

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 Datastore, enhances its effectiveness. In this hands-on lab, we’ll deploy an app to App Engine that allows users to enter details into a NoSQL database, Cloud Datastore, and displays the proper HTML template and CSS. The process requires that we customize the `config.py` file before deploying the app.

Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 30m
Published
Clock icon Mar 18, 2019

Contact sales

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

Table of Contents

  1. Challenge

    Enable APIs and clone GitHub repository.

    1. From the main navigation, visit the APIs & Services > Libraries page, and search for "Datastore".
    2. Select the Cloud Datastore API.
    3. If the API is not available, click Enable.
    4. Repeat the process to enable the Cloud Build API and Container Registry API
    5. Activate the Cloud Shell.
    6. When it spins up, create the necessary bucket (bucket name must be unique): gsutil mb -c regional -l us-east1 gs://[BUCKET_NAME] gsutil iam ch allUsers:objectViewer gs://[BUCKET_NAME]
    7. Clone the GitHub repository: git clone https://github.com/ACloudGuru-Resources/content-gc-essentials
    8. Change directory to the content-gc-essentials/app-engine-lab folder.
  2. Challenge

    Configure `config.py` file.

    1. From the Cloud Shell Editor, open config.py in the app-engine-lab folder.
    2. Change PROJECT_ID to the current project, as shown in the Cloud Shell.
    3. Change the "CLOUD_STORAGE_BUCKET" variable value to your unique bucket name.
    4. Save the file.
  3. Challenge

    Deploy the app.

    1. In the Cloud Shell, enter the following code:
    gcloud config set app/cloud_build_timeout 6000s
    gcloud app deploy
    
    1. When prompted, choose the us-east1 region.
  4. Challenge

    Test the app.

    1. In the Cloud Shell, enter the following code:
    gcloud app browse
    
    1. If the browser window does not open, click the generated link.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

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.

Start learning by doing today

View Plans