nodejs-docs-samples

Node.js samples for Google Cloud Platform products.

Github星跟蹤圖

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.

主要指標

概覽
名稱與所有者GoogleCloudPlatform/nodejs-docs-samples
主編程語言JavaScript
編程語言JavaScript (語言數: 11)
平台
許可證Apache License 2.0
所有者活动
創建於2015-05-04 23:26:38
推送於2025-06-23 04:48:30
最后一次提交
發布數0
用户参与
星數2.9k
關注者數261
派生數2k
提交數6.4k
已啟用問題?
問題數875
打開的問題數18
拉請求數2563
打開的拉請求數17
關閉的拉請求數641
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?