GoogleCloudPlatform/nodejs-docs-samples
关于
适用于 Google Cloud Platform 产品的 Node.js 示例。
学习与教育实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 0
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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
Install Node.js version 18 or greater
Install the Google Cloud CLI (gcloud)
Clone this repository:
git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.gitObtain 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 loginRead more about Google Cloud Platform Authentication.
How to run a sample
Change directory to one of the sample folders, e.g.
run/helloworld:cd run/helloworldInstall the sample's dependencies (see the sample's README for details):
npm installFor samples with an available TypeScript variant, compile the TypeScript code:
npm run build
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.
探索相关项目
加载中…