Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 842 Bytes

File metadata and controls

32 lines (22 loc) · 842 Bytes

Express on Google App Engine

Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.

Create a new Express app

View the Express app generator guide.

Configure

Create an app.yaml in the root of your application with the following contents:

runtime: nodejs
vm: true
api_version: 1
env_variables:
  PORT: 8080
Deploy

For 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.