/appengine-nodejs-quickstart

Primary LanguageJavaScriptApache License 2.0Apache-2.0

appengine-nodejs-quickstart

A starter project for node.js on Google App Engine Managed VMs using Custom Runtimes.

Usage

Start by cloning this repository.

To run the app locally in the dev appserver:

gcloud preview app run .

If needed, you can enable debug output:

gcloud --verbosity debug preview app run .

To deploy the app in production:

gcloud --project YOUR-PROJECT-NAME-HERE preview app deploy .

Application layout

The main script for the application is server.js.

Static files are in the static directory. The app.yaml descriptor is already configured to serve all .html, .css and .js files under static as static content.

The main page for the application is static/index.html.

APIs

The documentation for the App Engine-specific APIs is on github under the appengine-nodejs project.

You may also find useful to use the following two libraries to access Google Cloud Platform APIs from node.js: googleapis and gcloud-node.