File tree Expand file tree Collapse file tree 5 files changed +39
-19
lines changed
guestbook-cloud-firestore Expand file tree Collapse file tree 5 files changed +39
-19
lines changed Original file line number Diff line number Diff line change 11# Google App Engine Standard Environment Samples for Java 11
22
3- <a href =" https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/ludoch/ samples&page=editor&open_in_editor=appengine-java11/README.md " >
3+ <a href =" https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs- samples&page=editor&open_in_editor=appengine-java11/README.md " >
44<img alt =" Open in Cloud Shell " src =" http://gstatic.com/cloudssh/images/open-btn.png " ></a >
55
66This is a repository that contains Java code samples for [ Google App Engine] [ ae-docs ]
Original file line number Diff line number Diff line change 11# Google App Engine Information App for Java11
22
3- <a href =" https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/ludoch/ samples&page=editor&open_in_editor==appengine-java11/gaeinfo/README.md " >
3+ <a href =" https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs- samples&page=editor&open_in_editor==appengine-java11/gaeinfo/README.md " >
44<img alt =" Open in Cloud Shell " src =" http://gstatic.com/cloudssh/images/open-btn.png " ></a >
55
66This sample demonstrates how to show all system environment metadata and properties on Google App
77Engine standard app.
88
9+ ## Setup your Google Cloud Platform Project
10+
11+ * If you haven't already, Download and initialize the [ Cloud SDK] ( https://cloud.google.com/sdk/ )
12+
13+ ` gcloud init `
14+
15+ * If you haven't already, Create an App Engine app within the current Google Cloud Project
16+
17+ ` gcloud app create `
18+
19+ * If you haven't already, Setup [ Application Default Credentials] ( https://developers.google.com/identity/protocols/application-default-credentials )
20+
21+ ` gcloud auth application-default login `
22+
923## Setup the Sample App
1024
1125- Copy the sample apps to your local machine:
@@ -26,20 +40,6 @@ Main class to your classpath:
2640 mvn package
2741```
2842
29- ## Setup you Google Cloud Project
30-
31- * If you haven't already, Download and initialize the [ Cloud SDK] ( https://cloud.google.com/sdk/ )
32-
33- ` gcloud init `
34-
35- * If you haven't already, Create an App Engine app within the current Google Cloud Project
36-
37- ` gcloud app create `
38-
39- * If you haven't already, Setup [ Application Default Credentials] ( https://developers.google.com/identity/protocols/application-default-credentials )
40-
41- ` gcloud auth application-default login `
42-
4343## Deploy
4444
4545- Deploy to App Engine standard environment using the following Maven command.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ This sample also uses packages from [Guava](https://github.com/google/guava),
1111which provides some basic utility libraries and collections from Google's core
1212libraries.
1313
14- ## Setup
14+ ## Setup your Google Cloud Platform Project
1515
1616* Download and initialize the [ Cloud SDK] ( https://cloud.google.com/sdk/ )
1717
@@ -22,6 +22,26 @@ libraries.
2222 gcloud app create
2323```
2424
25+ ## Setup the Sample App
26+
27+ - Copy the sample apps to your local machine:
28+ ```
29+ git clone https://github.com/GoogleCloudPlatform/java-docs-samples
30+ ```
31+
32+ - Add the [ appengine-simple-jetty-main] ( ../README.md#appengine-simple-jetty-main )
33+ Main class to your classpath:
34+ ```
35+ cd java-docs-samples/appengine-java11/appengine-simple-jetty-main
36+ mvn install
37+ ```
38+
39+ - Move into the ` appengine-java11/guestbook-cloud-firestore ` directory and compile the app:
40+ ```
41+ cd ../guestbook-cloud-firestore
42+ mvn package
43+ ```
44+
2545* Setup [ Application Default Credentials] ( https://developers.google.com/identity/protocols/application-default-credentials ) by
2646[ creating a service account] ( https://cloud.google.com/docs/authentication/production#creating_a_service_account ) and downloading the JSON key file.
2747
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
12<!--
23 Copyright 2019 Google LLC
34 Licensed under the Apache License, Version 2.0 (the "License");
1011 See the License for the specific language governing permissions and
1112 limitations under the License.
1213-->
13- <?xml version =" 1.0" encoding =" utf-8" ?>
1414<web-app xmlns =" http://xmlns.jcp.org/xml/ns/javaee"
1515 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
1616 xsi : schemaLocation =" http://xmlns.jcp.org/xml/ns/javaee
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ from [Google App Engine standard Java 11 environment][ae-docs].
1010[ ae-docs ] : https://cloud.google.com/appengine/docs/java/
1111
1212
13- ## Setup
13+ ## Setup your Google Cloud Platform Project
1414- Install the [ Google Cloud SDK] ( https://cloud.google.com/sdk/ ) and run:
1515```
1616 gcloud init
You can’t perform that action at this time.
0 commit comments