Sie sind auf Seite 1von 13

Google App Engine

Step by step guide for developing application on GAE:

1. Create a developer account. Visit http://code.google.com/appengine/. Click on Sign up link

2. You will be redirected to below page. Either enter your existing google account credentials OR Click on SIGN UP link to create a new google account.

3.

After signing in, you will be redirected to below page. Click on Create Application.

4. Enter the details like country, and cell number with country code. You will receive SMS containing verification code. Enter that code in following page.

5. After successful verification, youll be directed to below page.

Accept the Google agreement and click on Create Application. 6. Click on dashboard link on below page.

7. Dashboard contains details about your account. Click on My Applications

8. This will redirect you to below page which lists all your applications. This Application id is needed when you deploy application on GAE cloud. Note: You can create up to 10 applications in free edition.

Above 8 steps just help us generate application ids. As you could see, Current Version column in above table reads None Deployed. Now we have to develop an actual application code which then can be deployed against this application id. 9. In this tutorial, we will learn how to develop application using Eclipse IDE. And to do that, you need to download GWT plugin for eclipse v3.6 Helios.

10. This http://code.google.com/eclipse/docs/download.html contains detailed explanation of how


to install GWT plug-in for various eclipse versions.

11. Start Eclipse, then select Help > Install New Software... In the dialog that appears, enter the
update site URL into the Work with text box:
http://dl.google.com/eclipse/plugin/3.6

And press the enter key.

12. You should see the center box filled with Plugin and SDKs. Select the checkbox next to both of these. This will install the plugin, a Google App Engine Java SDK and a Google Web Toolkit SDK. Click Next..

13. Review the features that you are about to install. Click Next.

14. Read the license agreements and then select I accept the terms of the license agreements. Click Finish.

15. You will then be asked be asked if you would like to restart Eclipse. Click Restart Now.

16. And the last thing you need to download is GWT SDK available at http://google-web-toolkit.googlecode.com/files/gwt-2.4.0.zip 17. In Eclipse, navigate to Window -> Preferences.

18. Navigate to Google -> Web Toolkit. Click on Add In the input box, enter the SDK location against Installation directory.

19. Now you are ready to build Google Web Toolkit and App Engine applications!!! You could see 3 icons appeared on the Eclipses toolbar. Let us work with them.

20. Click on the

icon to create GWT project.

21. You will be provided with the sample Greetings application. GWT plug-in creates various files required to develop an application. You can add/ update other files to suit your requirements.

22. To compile your code, click on . In the GWT Compile dialog, you can customize the compilation settings and specify the set of modules to be compiled. The Advanced link at the bottom displays text boxes where you can add additional options for the GWT compiler and the Java VM. 23. Now we will see how we would deploy application on GAE. To deploy your application, click on .

24. Enter your email id and password. Click on App Engine project settings Provide application id created using first few steps. Click OK.

25. Now your application is about to get deployed on GAE. But before that, GWT plug-in checks if all your code compiles successfully. If it does, then deployment would continue and completes successfully. But if it does not compile, error would be thrown. You need to correct that error and retry. If everything goes well, deployment will be successful.

26. Login to https://appengine.google.com/ Now you should see current version as 1 of your application.

27. Click on the version number, which takes you to your own application running on scalable, reliable, secure Google infrastructure- GAE.

Das könnte Ihnen auch gefallen