Step by Step GAE

download Step by Step GAE

of 13

Transcript of Step by Step GAE

  • 7/29/2019 Step by Step GAE

    1/13

    Google App Engine

    Step by step guide for developing application on GAE:

    1. Create a developer account.

    Visithttp://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.

    http://code.google.com/appengine/http://code.google.com/appengine/http://code.google.com/appengine/http://code.google.com/appengine/
  • 7/29/2019 Step by Step GAE

    2/13

    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.

  • 7/29/2019 Step by Step GAE

    3/13

    Accept the Google agreement and click on Create Application.

    6. Click on dashboard link on below page.

  • 7/29/2019 Step by Step GAE

    4/13

    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.Thishttp://code.google.com/eclipse/docs/download.htmlcontains detailed explanation of how

    to install GWT plug-in for various eclipse versions.

    http://code.google.com/eclipse/docs/download.htmlhttp://code.google.com/eclipse/docs/download.htmlhttp://code.google.com/eclipse/docs/download.htmlhttp://code.google.com/eclipse/docs/download.html
  • 7/29/2019 Step by Step GAE

    5/13

    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.

  • 7/29/2019 Step by Step GAE

    6/13

    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..

  • 7/29/2019 Step by Step GAE

    7/13

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

  • 7/29/2019 Step by Step GAE

    8/13

    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.

  • 7/29/2019 Step by Step GAE

    9/13

    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.

  • 7/29/2019 Step by Step GAE

    10/13

    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.

  • 7/29/2019 Step by Step GAE

    11/13

    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 .

  • 7/29/2019 Step by Step GAE

    12/13

    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.

  • 7/29/2019 Step by Step GAE

    13/13

    26.Login tohttps://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.

    https://appengine.google.com/https://appengine.google.com/https://appengine.google.com/https://appengine.google.com/