This sample shows you how to deploy a simple "Hello World" application to Google App Engine.
-
Download and install the Google Cloud SDK.
-
Create a new Google Cloud Platform project, or use an existing one.
-
Initialize the Cloud SDK.
gcloud init
-
Install the Cloud SDK
app-engine-java
component.gcloud components install app-engine-java
To run the application locally, use the Maven App Engine plugin.
mvn clean appengine:run
View the app at localhost:8080.
To deploy the app to App Engine, run
mvn clean appengine:deploy
After the deploy finishes, you can view your application at
https://YOUR_PROJECT.appspot.com
, where YOUR_PROJECT
is your Google Cloud
project ID. You can see the new version deployed on the App Engine section of
the Google Cloud Console.
- Read the App Engine documentation.
- Explore the other Google Cloud Platform sample applications for Java™.
-
See CONTRIBUTING.md
-
See LICENSE
Java is a registered trademark of Oracle Corporation and/or its affiliates.