Skip to content

GoogleCloudPlatform/nodejs-docs-samples

Folders and files

NameName
Last commit message
Last commit date
Apr 16, 2025
Feb 5, 2025
Dec 5, 2024
Mar 31, 2025
Sep 15, 2024
Aug 11, 2024
Sep 15, 2024
Aug 23, 2024
Mar 18, 2025
Sep 15, 2024
Apr 1, 2025
Sep 15, 2024
Sep 15, 2024
Sep 15, 2024
Apr 4, 2025
Sep 15, 2024
Sep 15, 2024
Sep 15, 2024
Feb 25, 2025
Sep 15, 2024
Sep 15, 2024
Aug 11, 2024
Sep 15, 2024
Sep 15, 2024
Sep 15, 2024
Sep 15, 2024
Sep 15, 2024
Aug 11, 2024
Mar 20, 2025
Sep 15, 2024
Mar 1, 2025
Mar 7, 2025
Feb 19, 2025
Feb 19, 2025
Sep 15, 2024
Sep 15, 2024
Feb 19, 2025
Sep 15, 2024
Aug 11, 2024
Dec 5, 2024
Mar 5, 2025
May 15, 2023
Mar 25, 2025
Oct 2, 2024
Sep 15, 2024
Mar 27, 2025
Mar 4, 2025
Mar 13, 2025
Mar 11, 2025
Sep 15, 2024
Mar 6, 2025
Sep 15, 2024
Sep 15, 2024
Sep 15, 2024
Aug 11, 2024
Mar 14, 2025
Apr 17, 2025
Sep 15, 2024
Mar 12, 2025
Aug 20, 2024
Jan 10, 2023
Jan 24, 2024
May 11, 2023
Apr 7, 2023
Apr 19, 2020
Apr 19, 2020
Mar 7, 2025
Jun 5, 2018
Oct 5, 2024
Jun 5, 2018
Nov 18, 2024
Apr 5, 2025
Jul 7, 2021
Oct 14, 2021
Aug 3, 2021
Aug 9, 2024
Aug 20, 2024
Oct 29, 2024

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.