JavaScript Apache-2.0

nodejs-docs-samples

Node.js samples for Google Cloud Platform products.

G

GoogleCloudPlatform

Dernière activité 28 sept. 2026
GoogleCloudPlatform/nodejs-docs-samples

3 k

étoiles

2 k

forks

45

issues ouvertes

apicloudexamplesgoogle-cloudjavascriptnodejssamplesamples

Ce README est souvent en anglais.

Google Cloud Platform logo

Google Cloud Platform Node.js Samples

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.

To browse documentation pages that use the samples found in this repository, visit the Google Cloud Samples page.

Setup

  1. Install Node.js version 18 or greater

  2. Install the Google Cloud CLI (gcloud)

  3. Clone this repository:

     git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
    
  4. 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. run/helloworld:

     cd run/helloworld
    
  2. Install the sample's dependencies (see the sample's README for details):

     npm install
    
    • For samples with an available TypeScript variant, compile the TypeScript code:

          npm run build
      
  3. Run the sample:

     npm start [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.

Contributing

Contributions welcome! See the Contributing Guide.

Projets similaires

Google Cloud Client Library for Node.js

TypeScriptgoogle-cloudnodejs
Ggoogleapis
3,2 k étoiles720

Code samples used on cloud.google.com

Jupyter Notebookpythonsamples
GGoogleCloudPlatform
8,1 k étoiles6,7 k

Collection of sample apps showcasing popular use cases using Cloud Functions for Firebase

JavaScriptfaasfaas-platformfirebase
Ffirebase
12,2 k étoiles3,8 k