Google AppEngine tutorial

Eclipse Indigo version

Hello world

1. Assumptions
Java and Eclipse already installed. I used installation of v 3.6 Helios for Java EE Developers, but anything from 3.3 should be Ok. If this assumption happens to be wrong – visit http://www.eclipse.org/downloads/.

2. Google Plugin for Eclipse
Plugins for Eclipse could be installed from very logical place in the menu: Help->

google..Install New Software and [Add.7 (Indigo) once Google will release it.com/eclipse/plugin/3.google.5 You got the idea and can guess url for Eclipse 3.5 (Galileo) it’s http://dl.6 for Eclipse 3.4 (Ganymede) or where it will be for 3.com/eclipse/plugin/3. Next step = actually install it .] button Location is specific for Eclipse version – for Eclipse 3.6 (Helios) it’s http://dl.

Google Plugin will add new toolbar .

so you might want to check availability of app. 3. AppEngine account Before creating “New Web Application Project “ via [g+] button.with New Web Application Project and Deploy App Engine Project buttons. There a loot of apps already created. or at least to deploy your application to the Google cloud you need a AppEngine account at http://appengine.com/ .google. id before hand . In turn it’s requires gmail and ability to receive SMS (Google will text you a verification code).

As you see from “Create an Application” screen. “Application Identifier” will be part of the url. it also will show up on administration console of AppEngine .

.

web.4. just few pre-generated files and libraries specific for AppEngine . in web artifacts it will create lib folder with bunch of jars.html and few more configuration files: java logging. It will create for you Servlet named after project.xml .xml and appengine-web. Log4j. New Web Application Project AppEngine “New Web Application Project” is not very different from regular web project – structure is really the same. index. config files for JDO.

appengine-web. So. name (have to match Application Identifier from step 3) and version.xml provides app. you can test several versions and promote/rollback any them with button click BTW version doesn’t have to be number – just confirm to regex '^(?!-)[a-z\d\-]{1. Version is cool way to have multiple instances of application to be deployed simultaneously.100}$' For example version ‘b’ .

Deploy to appspot.com As easy as click on “Deploy App Engine Project” button . hence control ower it rather limited – html changes in project will be reflected immediately on localhost:8888. Let’s Run There several ways to run: Locally in Jetty – just right-click in project explorer and select Run As->Web Application . but recompiled class wouldn’t get updated by another RunAs.regular Eclipse way it will start Jetty and show console where messages from Jetty and stdout of your app will go.5. 6. Unfortunately Jetty will not show up in the servers view. you’ll also have to stop Jetty.

App Engine project settings allows you to change App ID and Version Now Default (not latest!) version available at [appname] .com – particular version.[appname] .appspot.com (app-enghw. .com in our case) and [version].appspot.appspot.

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.