Skip to content

Commit 139b2cf

Browse files
datastore: document how to use the emulator
1 parent bf9929e commit 139b2cf

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

packages/datastore/src/index.js

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,23 @@ var PKG = require('../package.json');
6868
* //-
6969
* // <h3>The Datastore Emulator</h3>
7070
* //
71-
* // <h4>gcloud SDK not supported</h4>
71+
* // Make sure you have the
72+
* // [gcloud SDK installed](https://cloud.google.com/sdk/downloads), then run:
7273
* //
73-
* // As of this release, the Datastore emulator that is part of the gcloud SDK
74-
* // is not compatible with google-cloud-node. We use
75-
* // <a href="http://grpc.io">gRPC</a> as our transport layer, while the gcloud
76-
* // SDK's Datastore emulator does not support gRPC.
77-
* //
78-
* // <h4>Use `gcd.sh` directly</h4>
79-
* // For now, you must use the
80-
* // <a href="https://storage.googleapis.com/gcd/tools/gcd-grpc-1.0.0.zip">
81-
* // gcd.sh</a> script.
74+
* // <pre>
75+
* // $ gcloud beta emulators datastore start --no-legacy
76+
* // </pre>
8277
* //
83-
* // When you run `./gcd start [datastore]`, you will see the following
84-
* // printed:
78+
* // You will see the following printed:
8579
* //
8680
* // <pre>
87-
* // If you are using a library that supports the DATASTORE_EMULATOR_HOST
88-
* // environment variable, run:
89-
* // export DATASTORE_EMULATOR_HOST=localhost:8080
81+
* // [datastore] API endpoint: http://localhost:8005
82+
* // [datastore] If you are using a library that supports the
83+
* // DATASTORE_EMULATOR_HOST environment variable, run:
84+
* // [datastore]
85+
* // [datastore] export DATASTORE_EMULATOR_HOST=localhost:8005
86+
* // [datastore]
87+
* // [datastore] Dev App Server is now running.
9088
* // </pre>
9189
* //
9290
* // Set that environment variable and your localhost Datastore will

0 commit comments

Comments
 (0)