nodejs-docs-samples

Node.js samples for Google Cloud Platform products.

Github stars Tracking Chart

Google Cloud Platform Node.js Samples Slack

Node.js samples for Google Cloud Platform products.

See cloud.google.com/nodejs to get up and running with Node.js
on Google Cloud Platform.

Setup

Prerequisites

  1. Install Node.js version 8 or greater

  2. Clone this repository:

     git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
    
  3. Obtain authentication credentials.

    Create local credentials by running the following command and following the
    oauth2 flow (read more about the command here):

     gcloud auth application-default login
    

    Read more about Google Cloud Platform Authentication.

How to run a sample

  1. Change directory to one of the sample folders, e.g. storage-transfer:

     cd storage-transfer/
    
  2. Install the sample's dependencies (see the sample's README for details):

     npm install
    
  3. Run the sample:

     node sample_file.js [args]...
    

Other sample applications

Bookshelf tutorial app

The Bookshelf app is a sample web app written in Node.js that
shows you how to use a variety of Google Cloud Platform features.

View the tutorial or the source code.

Node.js Codelab

In the Node.js Web App Google Cloud Platform codelab, you learn
how to integrate Google Cloud Platform services into a Node.js web application
to store data, upload images, and authenticate users.

View the tutorial or the source code.

Contributing

Contributions welcome! See the Contributing Guide.

Overview

Name With OwnerGoogleCloudPlatform/nodejs-docs-samples
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 11)
Platform
License:Apache License 2.0
Release Count0
Created At2015-05-04 23:26:38
Pushed At2024-05-14 19:51:46
Last Commit At
Stargazers Count2.8k
Watchers Count169
Fork Count1.9k
Commits Count6.1k
Has Issues Enabled
Issues Count827
Issue Open Count27
Pull Requests Count2310
Pull Requests Open Count3
Pull Requests Close Count543
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top