This is a repository that contains Java code samples for Google App Engine flexible environment.
See our other Google Cloud Platform GitHub repos for sample applications and scaffolding for other frameworks and use cases.
-
Install the Google Cloud SDK, including the gcloud tool, and gcloud app component.
-
Setup the gcloud tool.
gcloud init
-
Clone this repo.
git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git
-
Run this project locally from the command line.
mvn clean jetty:run
-
Visit the application at http://localhost:8080.
-
Use the Cloud Developer Console to create a project/app id. (App id and project id are identical)
-
Setup the gcloud tool.
gcloud init
-
Use the Admin Console to view data, queues, and other App Engine specific administration tasks.
-
Use gcloud to deploy your app.
mvn clean gcloud:deploy
-
Congratulations! Your application is now live at your-app-id.appspot.com
- See CONTRIBUTING.md
- See LICENSE