@@ -9,44 +9,50 @@ scaffolding for other frameworks and use cases.
9
9
10
10
[ aeflex-docs ] : https://cloud.google.com/appengine/docs/flexible/
11
11
12
- ## Run Locally
13
- 1 . Install the [ Google Cloud SDK] ( https://cloud.google.com/sdk/ ) , including the [ gcloud tool] ( https://cloud.google.com/sdk/gcloud/ ) , and [ gcloud app component] ( https://cloud.google.com/sdk/gcloud-app ) .
14
- 1 . Setup the gcloud tool.
12
+ ## Getting the sample code
15
13
16
- ```
17
- gcloud init
18
- ```
14
+ Get the latest sample code from GitHub using Git or download the repository as a ZIP file.
15
+ ([ Download] ( https://github.com/GoogleCloudPlatform/java-docs-samples/archive/master.zip ) )
19
16
20
- 1 . Clone this repo.
17
+ git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git
21
18
22
- ```
23
- git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git
24
- ```
25
19
26
- 1 . Run this project locally from the command line.
20
+ ## Before you begin
27
21
28
- ```
29
- mvn clean jetty:run
30
- ```
22
+ 1 . Follow the [ quickstart for Java in the App Engine flexible
23
+ environment] ( https://cloud.google.com/appengine/docs/flexible/java/quickstart ) to
24
+ set up your environment to deploy the sample applications App Engine.
25
+ 1 . Download and install the [ Google Cloud SDK] ( https://cloud.google.com/sdk/docs/ ) .
26
+ 1 . [ Install and configure Apache Maven] ( http://maven.apache.org/index.html ) .
27
+ 1 . [ Create a new Google Cloud Platform project, or use an existing
28
+ one] ( https://console.cloud.google.com/project ) .
29
+ 1 . [ Enable billing for your
30
+ project] ( https://support.google.com/cloud/answer/6293499#enable-billing ) .
31
+ 1 . Initialize the Cloud SDK.
31
32
32
- 1 . Visit the application at [ http://localhost:8080 ] ( http://localhost:8080 ) .
33
+ gcloud init
33
34
34
- ## Deploying
35
+ ## Deploying to App Engine
35
36
36
- 1 . Use the [ Cloud Developer Console] ( https://console.developer.google.com ) to create a project/app id. (App id and project id are identical)
37
- 1 . Setup the gcloud tool.
37
+ To run the application locally, use the Maven Jetty plugin.
38
38
39
- ```
40
- gcloud init
41
- ```
42
- 1 . Use the [ Admin Console] ( https://appengine.google.com ) to view data, queues, and other App Engine specific administration tasks.
43
- 1 . Use gcloud to deploy your app.
39
+ mvn clean jetty:run
44
40
45
- ```
46
- mvn clean gcloud:deploy
47
- ```
41
+ View the app at [ localhost:8080] ( http://localhost:8080 ) .
42
+
43
+ To deploy the app to App Engine, run
44
+
45
+ mvn clean appengine:deploy
46
+
47
+ After the deploy finishes (can take up to 10 minutes), you can view your application at
48
+ ` https://YOUR_PROJECT.appspot.com ` , where ` YOUR_PROJECT ` is your Google Cloud project ID. You can
49
+ see the new version deployed on the [ App Engine section of the Google Cloud
50
+ Console] ( https://console.cloud.google.com/appengine/versions ) .
51
+
52
+ For a more detailed walkthrough, see the [ getting started
53
+ guide for Java in the App Engine flexible
54
+ environment] ( https://cloud.google.com/java/getting-started/hello-world ) .
48
55
49
- 1 . Congratulations! Your application is now live at your-app-id.appspot.com
50
56
51
57
## Contributing changes
52
58
0 commit comments