| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This sample demonstrates how to use Google Cloud Spanner from Google App Engine standard environment.
gcloud init
If this is your first time creating an App engine application:
gcloud app create
Update SPANNER_INSTANCE value in `appengine-web.xml.
gcloud auth application-default login
You may also create and use service account credentials.
mvn -DSPANNER_INSTANCE=my-spanner-instance jetty:run
To see the results of the local application, open http://localhost:8080/spanner in a web browser. Note : by default all the spanner example operations run in order, this operation may take a while to show results.
$ mvn clean appengine:deploy
To see the results of the deployed sample application, open https://spanner-dot-PROJECTID.appspot.com/spanner in a web browser. Note : by default all the spanner example operations run in order, this operation may take a while to show results.
| Back | FazBrowse Home | New Git URL |