Tutorial by Examples

Before running this sample, you must: Download and install the Java SE Development Kit (JDK): Download JDK Download Apache Maven version 3.3.9 or greater: Install and configure Maven for your local development environment.
We've created a simple Hello World app for Java so you can quickly get a feel for deploying an app to Google Cloud Platform. Follow these steps to download Hello World to your local machine. Clone the Hello World sample app repository to your local machine: git clone https://github.com/GoogleCloud...
Test the application using the development web server, which is included with the App Engine SDK. Run the following Maven command from within your helloworld directory, to compile your app and start the development web server: mvn appengine:devserver The web server is now listening for re...
You can leave the web server running while you develop your application. When you make a change, use the mvn clean package command to build and update your app. Try it now: Leave the web server running, then edit HelloServlet.java to change Hello, world to something else. Run mvn clean package,...
To deploy your app to App Engine, you will need to register a project to create your project ID, which will determine the URL for the app. In the Cloud Platform Console, go to the Projects page and select or create a new project. Note the project ID you created above, and enter it in src/m...

Page 1 of 1