Deploying an Angular App Using Google Cloud Run
Learn how to create, Dockerize, and deploy your containerized Angular application using Google Cloud Run.
Published in
5 min readFeb 24, 2020
TL;DR: working example Github repo.
Prerequisites:
- Node
- Angular CLI
- Docker
- Google Cloud SDK
- An activated Google Cloud Platform account
Skip step 1. if you already have a working Angular app.
1. Create an Angular App
To get started, use the Angular CLI to generate a new Angular app:
ng new
You will be prompted to name your app and add some configuration choices. Once the CLI has generated all the necessary files for your Angular app, you can test it out by executing these two commands.
cd <app-name>ng serve
In your favorite browser, navigate to http://localhost:4200. With Angular 9, you will get a similar welcome screen to the one below.