Google Cloud SDK on Ubuntu

# Create environment variable for correct distribution
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"

# Add the Cloud SDK distribution URI as a package source
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list

# Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

# Update the package list and install the Cloud SDK
sudo apt-get update && sudo apt-get install google-cloud-sdk
  • Initialize the Google Cloud SDK:
gcloud init
  • Create a project

  • Connect to the project

gcloud config set project titanic-rest-api
  • Create an app.yaml file
runtime: nodejs  
env: flex
  • Deploy your app into the cloud:
gcloud app deploy --version 0-0-1