Visitar URL original
GitHub - r-tomiyama/nodejs-docs-samples: Node.js samples for Google Cloud Platform products. · GitHub
Skip to content

About

Node.js samples for Google Cloud Platform products.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

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

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages