Challenge 1: Building and deploying a web service

Next Challenge

Introduction

Before we can deploy the app, we need its source code. So, the first step is to get the code for the web service and run it locally to verify that everything is running smoothly.

Description

We’ve prepared a sample project, navigate there and download the project to your environment. Unpack it, install the dependencies and start it (without using containers). Edit the service to show your Team Name in the welcome page.

Once the service is running locally, deploy it to Cloud Run from source code using the command line. Pick us-central1 as the region, allow unauthenticated invocations, and stick to the defaults for the rest.

Note The deployment might take a few minutes to complete.

Success Criteria

  • The app can run locally (without containers)
  • The app is successfully deployed to Cloud Run
  • The tests in run.test.js are all passing
  • The only code change made is to show the Team Name in the welcome message

Learning Resources

Tips

  • Cloud Shell supports vim/emacs/nano, but it also has a visual editor
  • Cloud Shell also supports running apps and previewing those in the browser

Next Challenge