File tree 5 files changed +39
-19
lines changed
guestbook-cloud-firestore 5 files changed +39
-19
lines changed Original file line number Diff line number Diff line change 1
1
# Google App Engine Standard Environment Samples for Java 11
2
2
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 " >
4
4
<img alt =" Open in Cloud Shell " src =" http://gstatic.com/cloudssh/images/open-btn.png " ></a >
5
5
6
6
This is a repository that contains Java code samples for [ Google App Engine] [ ae-docs ]
Original file line number Diff line number Diff line change 1
1
# Google App Engine Information App for Java11
2
2
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 " >
4
4
<img alt =" Open in Cloud Shell " src =" http://gstatic.com/cloudssh/images/open-btn.png " ></a >
5
5
6
6
This sample demonstrates how to show all system environment metadata and properties on Google App
7
7
Engine standard app.
8
8
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
+
9
23
## Setup the Sample App
10
24
11
25
- Copy the sample apps to your local machine:
@@ -26,20 +40,6 @@ Main class to your classpath:
26
40
mvn package
27
41
```
28
42
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
-
43
43
## Deploy
44
44
45
45
- 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),
11
11
which provides some basic utility libraries and collections from Google's core
12
12
libraries.
13
13
14
- ## Setup
14
+ ## Setup your Google Cloud Platform Project
15
15
16
16
* Download and initialize the [ Cloud SDK] ( https://cloud.google.com/sdk/ )
17
17
@@ -22,6 +22,26 @@ libraries.
22
22
gcloud app create
23
23
```
24
24
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
+
25
45
* Setup [ Application Default Credentials] ( https://developers.google.com/identity/protocols/application-default-credentials ) by
26
46
[ creating a service account] ( https://cloud.google.com/docs/authentication/production#creating_a_service_account ) and downloading the JSON key file.
27
47
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
1
2
<!--
2
3
Copyright 2019 Google LLC
3
4
Licensed under the Apache License, Version 2.0 (the "License");
10
11
See the License for the specific language governing permissions and
11
12
limitations under the License.
12
13
-->
13
- <?xml version =" 1.0" encoding =" utf-8" ?>
14
14
<web-app xmlns =" http://xmlns.jcp.org/xml/ns/javaee"
15
15
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
16
16
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].
10
10
[ ae-docs ] : https://cloud.google.com/appengine/docs/java/
11
11
12
12
13
- ## Setup
13
+ ## Setup your Google Cloud Platform Project
14
14
- Install the [ Google Cloud SDK] ( https://cloud.google.com/sdk/ ) and run:
15
15
```
16
16
gcloud init
You can’t perform that action at this time.
0 commit comments