Google Cloud Deployment

The following are the instructions to deploy the angular-fullstack app to Google Cloud App Engine Standard Environment

Prequsites

1. Google Cloud SDK

Download and install Google Cloud SDK

2. Create GCP Project

  gcloud projects create [PROJECT_ID]

[PROJECT_ID] ID for the project you want to create.

3. Enable Billing

You need to enable billing for your project before you begin using App Engine

  gcloud alpha billing projects link my-project \ 
      --billing-account 0X0X0X-0X0X0X-0X0X0X

gcloud alpha billing projects link

4. Create a MongoDB database

Create a MongoDB instance and obtain the uri and credentials. There are multiple options for creating a new MongoDB database.

Deployment Setup

1. Set Node / NPM versions

2. Create Application configuration file (app.yaml)

Deployment Steps

1. Build the app

2. Copy app.yaml to dist

3. Change to build directory

4. Deploy

Last updated

Was this helpful?