Google App Engine is a Platform as a Service provided by Google. There are no servers to maintain with App Engine. Simply upload your application and you’re good to go. This article is for anyone who knows a little bit about web development and wants to create a live, public web application. This tutorial makes use of the Google App Engine Java Plugin and the Eclipse IDE.
Part 1 Setting up the Environment
This procedure instals the Google Plugin for Eclipse, as well as the Android Developer Tools, Google Web Toolkit SDK, and Google App Engine SDK, if desired.
1. Start Eclipse, running JVM version 1.7.0 or later.
2. Select Help > Install New Software.
3. In the dialog that appears, enter the update site URL into the Work with text box: “https://dl.google.com/eclipse/plugin/4.3”. Press the ↵ Enter key.
4. Select the checkbox next to Google Plugin for Eclipse (required). Click Next.
5. Review the features that you are about to install. Click Next.
6. Read the license agreements and then select “I accept the terms of the license agreements”. Click Finish.
7. Click OK on the Security Warning.
8. Click Restart Now to restart Eclipse.
9. Sign in to Google by clicking in bottom-right corner.
Provide the Google Account Credentials and Click Sign in.
Click ‘Accept’ after reading the required permissions.
Now you are logged in to your Google Account.
You are ready to build App Engine web applications and mobile backends for your Android applications!
Part 2 Creating the Application in GAE
1. Go to appengine.google.com
2. Sign in with your Google account credentials. A new page appears, displaying all of the Google App Engine applications that you have created.
3. Click ‘Google Developers Console’ link. A new window opens.
4. Google Developers Console is opened.
5. Click ‘Create new Project’.
6. Enter the project name and customise the app ID as desired, but keep in mind that it must be unique. If the app id is not available, an error message is displayed.
7. Click Create. Your newly created app is ready. Now you can deploy the java web app code to this app id.
Part 3 Creating the Application in Eclipse
1. Open Eclipse. Go to File > New > Web Application Project.
2. Enter the project name and package name. Uncheck the Google Web Toolkit.
3. Click Finish.
Your project folder and its internal hierarchy will be created as shown in the figure.
4. Open index.html which is present in the war folder of your project.
5. Modify the HTML as needed. We are not currently using any servlets, so remove the servlet link from the html.
6. Open web.xml and make sure that index.html is set as the welcome file.
7. Save the project.
Part 4 Deploying the App to Google App Engine
1. Right click on the project name in the package explorer. Go to Deploy > Google #App Engine. A window will pop-up.
2. Click on the ‘Application Settings’ link. A new window will pop-up.
3. Enter the App ID which you previously created and click OK. Click Deploy.
4. When the app is deployed, it will automatically open in the browser. The app will be available for download at www.app-id.appspot.com.
Creative Commons License