Skip to content

datastore: document how to use the emulator #1560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 2, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 13 additions & 15 deletions packages/datastore/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,23 @@ var PKG = require('../package.json');
* //-
* // <h3>The Datastore Emulator</h3>
* //
* // <h4>gcloud SDK not supported</h4>
* // Make sure you have the
* // [gcloud SDK installed](https://cloud.google.com/sdk/downloads), then run:
* //
* // As of this release, the Datastore emulator that is part of the gcloud SDK
* // is not compatible with google-cloud-node. We use
* // <a href="http://grpc.io">gRPC</a> as our transport layer, while the gcloud
* // SDK's Datastore emulator does not support gRPC.
* //
* // <h4>Use `gcd.sh` directly</h4>
* // For now, you must use the
* // <a href="https://storage.googleapis.com/gcd/tools/gcd-grpc-1.0.0.zip">
* // gcd.sh</a> script.
* // <pre>
* // $ gcloud beta emulators datastore start --no-legacy
* // </pre>
* //
* // When you run `./gcd start [datastore]`, you will see the following
* // printed:
* // You will see the following printed:
* //
* // <pre>
* // If you are using a library that supports the DATASTORE_EMULATOR_HOST
* // environment variable, run:
* // export DATASTORE_EMULATOR_HOST=localhost:8080
* // [datastore] API endpoint: http://localhost:8005
* // [datastore] If you are using a library that supports the
* // DATASTORE_EMULATOR_HOST environment variable, run:
* // [datastore]
* // [datastore] export DATASTORE_EMULATOR_HOST=localhost:8005
* // [datastore]
* // [datastore] Dev App Server is now running.
* // </pre>
* //
* // Set that environment variable and your localhost Datastore will
Expand Down