The following are the instructions to deploy the angular-fullstack app to Google Cloud App Engine Standard Environment
Download and install Google Cloud SDK
gcloud projects create [PROJECT_ID]
[PROJECT_ID]
ID for the project you want to create.
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
Create a MongoDB instance and obtain the uri and credentials. There are multiple options for creating a new MongoDB database.
GCloud App Engine supports only the newest version of Node.js 8
"engines": {
"node": ">=8.0",
"npm": "^5.1.1"
},
A Node.js app in App Engine is configured through a file named app.yaml, that contains runtime, handlers,
scaling, and other general settings including environment variables.
2.1 create a 'app.yaml' file with the following contents
env: standard
runtime: nodejs8
env_variables:
MONGODB_URI: "mongodb://<dbuser :<dbpassword @<environment_URI/deployment_name"
2.2 Add app.yaml to .gitignore
gulp build
cp app.yaml dist
cd dist
gcloud app deploy