Skip to content

Commit cf6a5c2

Browse files
committed
Merge pull request #181 from GoogleCloudPlatform/datastore
Add App Engine raw Datastore API Entity samples.
2 parents 171fdd9 + 7007d39 commit cf6a5c2

File tree

2 files changed

+394
-3
lines changed

2 files changed

+394
-3
lines changed

appengine/datastore/README.md

+30-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,41 @@ from [Google App Engine standard environment][ae-docs].
66
[java-datastore]: https://cloud.google.com/appengine/docs/java/datastore/
77
[ae-docs]: https://cloud.google.com/appengine/docs/java/
88

9+
10+
## Running locally
11+
12+
This example uses the
13+
[Maven gcloud plugin](https://cloud.google.com/appengine/docs/java/managed-vms/maven).
14+
To run this sample locally:
15+
16+
$ mvn appengine:devserver
17+
18+
To see the results of the sample application, open
19+
[localhost:8080](http://localhost:8080) in a web browser.
20+
21+
22+
## Deploying
23+
24+
In the following command, replace YOUR-PROJECT-ID with your
25+
[Google Cloud Project ID](https://developers.google.com/console/help/new/#projectnumber)
26+
and SOME-VERSION with a valid version number.
27+
28+
$ mvn appengine:update -Dappengine.appId=YOUR-PROJECT-ID -Dappengine.version=SOME-VERSION
29+
30+
931
## Setup
32+
33+
To save your project settings so that you don't need to enter the
34+
parameters, you can:
35+
1036
1. Update the `<application>` tag in `src/main/webapp/WEB-INF/appengine-web.xml`
1137
with your project name.
1238
1. Update the `<version>` tag in `src/main/webapp/WEB-INF/appengine-web.xml`
1339
with your version name.
1440

15-
## Running locally
16-
$ mvn appengine:devserver
41+
You will now be able to run
1742

18-
## Deploying
1943
$ mvn appengine:update
44+
45+
without the need for any additional parameters.
46+

0 commit comments

Comments
 (0)