googlearchive / appengine-nodejs-quickstart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

status: inactive

This sample has been moved into GoogleCloudPlatform/nodejs-getting-started.

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 app.yaml

If needed, you can enable debug output:

gcloud --verbosity debug preview app run app.yaml

To deploy the app in production:

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

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.

About

License:Apache License 2.0


Languages

Language:JavaScript 90.8%Language:HTML 9.2%