You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Create a Cloud Storage Bucket to stage our deployment:
23
-
24
-
gsutil mb gs://YOUR_BUCKET_NAME
25
-
26
-
* Replace `YOUR_BUCKET_NAME` here and in subsequent commands with the name of your Cloud Storage Bucket.
27
-
28
22
1. Ensure the Cloud Datastore API is enabled:
29
23
30
24
[Click here to enable the Cloud Datastore API](https://console.cloud.google.com/flows/enableapi?apiid=datastore.googleapis.com&redirect=https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/functions/datastore)
31
25
32
26
1. Deploy the "get" function with an HTTP trigger:
33
27
34
-
gcloud beta functions deploy get --stage-bucket YOUR_BUCKET_NAME --trigger-http
28
+
gcloud beta functions deploy get --trigger-http
35
29
36
30
1. Deploy the "set" function with an HTTP trigger:
37
31
38
-
gcloud beta functions deploy set --stage-bucket YOUR_BUCKET_NAME --trigger-http
32
+
gcloud beta functions deploy set --trigger-http
39
33
40
34
1. Deploy the "del" function with an HTTP trigger:
41
35
42
-
gcloud beta functions deploy del --stage-bucket YOUR_BUCKET_NAME --trigger-http
36
+
gcloud beta functions deploy del --trigger-http
43
37
44
38
1. Call the "set" function to create a new entity:
0 commit comments