Skip to content
App Engine Getting Started with Java runtime
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.kokoro Added presubmit and continous integration testing via Kokoro. Oct 18, 2017
src/main Upgrading the sample to the Java8 runtime. Jun 18, 2018
.gitignore
.playground
.travis.yml Change installed `gcloud` to downloaded `gcloud`. fixes #40 Mar 11, 2018
CONTRIBUTING.md
LICENSE
README.md
pom.xml
service-account.json.enc Configure Travis to install Google Cloud SDK App Engine components. Dec 2, 2016
setup_tests.sh Change installed `gcloud` to downloaded `gcloud`. fixes #40 Mar 11, 2018
travis.sh

README.md

Hello Google App Engine for Java™

Build Status

This sample shows you how to deploy a simple "Hello World" application to Google App Engine.

Before you begin

  1. Download and install the Google Cloud SDK.

  2. Install and configure Apache Maven.

  3. Create a new Google Cloud Platform project, or use an existing one.

  4. Initialize the Cloud SDK.

    gcloud init
    
  5. Install the Cloud SDK app-engine-java component.

    gcloud components install app-engine-java
    

Deploying to App Engine

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.

Next steps

  1. Read the App Engine documentation.
  2. Explore the other Google Cloud Platform sample applications for Java™.

Contributing changes

Java is a registered trademark of Oracle Corporation and/or its affiliates.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.