Skip to content

Latest commit

 

History

History
194 lines (141 loc) · 7.14 KB

README.md

File metadata and controls

194 lines (141 loc) · 7.14 KB

Google App Engine Node.js Samples

These are samples for using Node.js on Google App Engine Managed VMs. These samples are referenced from the docs.

See our other Google Cloud Platform github repos for sample applications and scaffolding for other frameworks and use cases.

Run Locally

Some samples have specific instructions. If there is a README in the sample folder, please refer to it for any additional steps required to run the sample.

In general, the samples typically require:

  1. Install the Google Cloud SDK, including the gcloud tool, and gcloud app component.

  2. Setup the gcloud tool. This provides authentication to Google Cloud APIs and services.

     gcloud init
    
  3. Clone this repo.

     git clone https://github.com/GoogleCloudPlatform/<REPO NAME>.git
    
  4. Open a sample folder, install dependencies, and run the sample:

     cd <sample-folder>/
     npm install
     npm start
    
  5. Visit the application at http://localhost:8080.

Deploying

Some samples in this repositories may have special deployment instructions. Refer to the README file in the sample folder.

  1. Use the Google Developers Console to create a project/app id. (App id and project id are identical.)

  2. Setup the gcloud tool, if you haven't already.

     gcloud init
    
  3. Use gcloud to deploy your app.

     gcloud app deploy
    
  4. Awesome! Your application is now live at your-project-id.appspot.com.

Samples

Google (Cloud) Products

Frameworks

Databases

Tools

Other Examples