View all files | ||||
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.
Install Node.js version 18 or greater
Install the Google Cloud CLI (gcloud)
Clone this repository:
Obtain authentication credentials.
Create local credentials by running the following command and following the oauth2 flow (read more about the command here):
Read more about Google Cloud Platform Authentication.
Change directory to one of the sample folders, e.g. run/helloworld:
Install the sample's dependencies (see the sample's README for details):
For samples with an available TypeScript variant, compile the TypeScript code:
Run the sample:
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.
Contributions welcome! See the Contributing Guide.