jaedon6 / nodejs-docs-samples

Node.js samples for Google Cloud Platform products.

Home Page:https://cloud.google.com/nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Cloud Platform logo

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.

Google Cloud Samples

To browse ready to use code samples check Google Cloud Samples.

Setup

Prerequisites

  1. Install Node.js version 10 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. datastore:

     cd datastore/
    
  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.

Contributing

Contributions welcome! See the Contributing Guide.

About

Node.js samples for Google Cloud Platform products.

https://cloud.google.com/nodejs

License:Apache License 2.0


Languages

Language:JavaScript 89.9%Language:Shell 5.0%Language:Dockerfile 2.1%Language:HTML 1.3%Language:Pug 1.1%Language:CSS 0.3%Language:PowerShell 0.2%Language:TypeScript 0.1%Language:Procfile 0.0%