在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):GoogleCloudPlatform/google-cloud-node-todos开源软件地址(OpenSource Url):https://github.com/GoogleCloudPlatform/google-cloud-node-todos开源编程语言(OpenSource Language):JavaScript 99.0%开源软件介绍(OpenSource Introduction):google-cloud-node-todos
Prerequisites
RunningLocally# Set your default Dataset
$ export DATASET_ID=$PROJECT_ID
# Install the dependencies
$ npm install
# Start the server
$ npm start Docker# Check that Docker is running
$ boot2docker up
$ $(boot2docker shellinit)
# Build your Docker image
$ docker build -t app .
# Start a new Docker container
$ docker run -e DATASET_ID=$PROJECT_ID -p 8080:8080 app
# Test the app
$ curl -X GET http://$(boot2docker ip):8080 Managed VMs# Get gcloud
$ curl https://sdk.cloud.google.com | bash
# Authorize gcloud and set your default project
$ gcloud auth login
$ gcloud config set project $PROJECT_ID
# Get App Engine component
$ gcloud components update app
# Check that Docker is running
$ boot2docker up
$ $(boot2docker shellinit)
# Download the Node.js Docker image
$ docker pull google/nodejs-runtime
# Run the app locally
$ npm start
$ curl -X GET http://localhost:8080
# Deploy the app to production
$ gcloud app deploy
$ curl -X GET http://$PROJECT_ID.appspot.com Command LineThis sample can also be run from the command line: $ npm link
$ datastore-todos Resources |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论