Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
View the Express app generator guide.
Create an app.yaml in the root of your application with the following contents:
runtime: nodejs
vm: true
api_version: 1
env_variables:
PORT: 8080For convenience, you can use an npm script to run the deploy command. Modify your package.json to include:
"scripts": {
"start": "node ./bin/www",
"deploy": "gcloud preview app deploy app.yaml --set-default --project [project id]"
}At the terminal you can now run npm run deploy to deploy your application.