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
Copy file name to clipboardExpand all lines: functions/datastore/README.md
+17-6
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,8 @@ View the [source code][code].
10
10
11
11
## Deploy and Test
12
12
13
-
1. Follow the [Cloud Functions quickstart guide](https://cloud.google.com/functions/quickstart) to setup Cloud Functions for your project.
13
+
1. Follow the [Cloud Functions quickstart guide][quickstart] to setup Cloud
14
+
Functions for your project.
14
15
15
16
1. Clone this repository:
16
17
@@ -19,27 +20,35 @@ View the [source code][code].
19
20
20
21
1. Create a Cloud Storage Bucket to stage our deployment:
21
22
22
-
gsutil mb gs://<your-bucket-name>
23
+
gsutil mb gs://[YOUR_BUCKET_NAME]
24
+
25
+
* Replace `[YOUR_BUCKET_NAME]` with the name of your Cloud Storage Bucket.
23
26
24
27
1. Ensure the Cloud Datastore API is enabled:
25
28
26
29
[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)
27
30
28
31
1. Deploy the "ds-get" function with an HTTP trigger:
29
32
30
-
gcloud alpha functions deploy ds-get --bucket <your-bucket-name> --trigger-http --entry-point get
33
+
gcloud alpha functions deploy ds-get --bucket [YOUR_BUCKET_NAME] --trigger-http --entry-point get
34
+
35
+
* Replace `[YOUR_BUCKET_NAME]` with the name of your Cloud Storage Bucket.
31
36
32
37
1. Deploy the "ds-set" function with an HTTP trigger:
33
38
34
-
gcloud alpha functions deploy ds-set --bucket <your-bucket-name> --trigger-http --entry-point set
39
+
gcloud alpha functions deploy ds-set --bucket [YOUR_BUCKET_NAME] --trigger-http --entry-point set
40
+
41
+
* Replace `[YOUR_BUCKET_NAME]` with the name of your Cloud Storage Bucket.
35
42
36
43
1. Deploy the "ds-del" function with an HTTP trigger:
37
44
38
-
gcloud alpha functions deploy ds-del --bucket <your-bucket-name> --trigger-http --entry-point del
45
+
gcloud alpha functions deploy ds-del --bucket [YOUR_BUCKET_NAME] --trigger-http --entry-point del
46
+
47
+
* Replace `[YOUR_BUCKET_NAME]` with the name of your Cloud Storage Bucket.
39
48
40
49
1. Call the "ds-set" function to create a new entity:
0 commit comments