Skip to content

r-tomiyama/nodejs-docs-samples

 
 

Repository files navigation

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 14 or greater

  2. Install the Google Cloud CLI (gcloud)

  3. Clone this repository

  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.

検証

Cloud Run のデプロイ

  1. プロジェクトを選択する
gcloud config set project xxx
gcloud config get-value project

デプロイを実行する

cd run/helloworld
npm install
./deploy.sh

PubSub

gcloud auth application-default login
cd pubsub/publish
npm install
npm start

About

Node.js samples for Google Cloud Platform products.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 46.9%
  • Shell 31.5%
  • Dockerfile 8.8%
  • Python 8.5%
  • PowerShell 3.2%
  • Makefile 1.1%