See the Google App Engine standard environment documentation for more detailed instructions.
- Java 8
- Maven (at least 3.5)
- Google Cloud SDK (aka gcloud command line tool)
-
Download and initialize the Cloud SDK
gcloud init
-
Create an App Engine app within the current Google Cloud Project
gcloud app create
mvn appengine:run
To use vist: http://localhost:8080/
mvn appengine:deploy
To use vist: https://YOUR-PROJECT-ID.appspot.com
mvn verify
As you add / modify the source code (src/main/java/...
) it's very useful to add unit testing
to (src/main/test/...
). The following resources are quite useful:
For further information, consult the Java App Engine documentation.