GAE as Android
  test portal
                  Part 1.
A walkthrough from Eclipse to ”Hello World”
Outline
 Introduction

 Install Eclipse Plugin

 Create a Web Application Project

 Run locally

 Create Application at GAE

 Deploy to App Engine

 What do we have?
Introduction
 GAE as Android test portal
    Part 1. Environment and infrastructure in place
    Part 2. Backend: Adding users. Data persistence and
      mail API
    Part 3. Frontend. Zepto, Backbone

 Development environment:
    MacBook Pro
    Eclipse Indigo
GAE, source Wikipedia
 Google App Engine (GAE), is a platform as a
   service (PaaS) cloud computing platform for
   developing and hosting web applications in Google-
   managed data centres. Applications are sandboxed
   and run across multiple servers.

 Google App Engine is free up to a certain level of
   consumed resources.

 It was first released as a preview version in April
   2008, and came out of preview in September 2011.
GAE, source Wikipedia
         con‟t
 Supported programming languages:
   Python, Java, Go.

 Developer site:
   https://developers.google.com/appengine/

 Deployment site: https://appengine.google.com/
Install Eclipse Plugin
Select the Help menu > Install New Software.


                                 Enter URL in Work
                                        with




                                               Select SDK and
                                                   Plugin
Create a project
Select the File menu > New -> Web Application Project.




                                                     Not using GWT!




  Default SDK
Create a project con‟t

                                       We want sample
                                           code




Press Finish and we are ready to go!
Launch locally
 Right click on project -> Run As -> Web Application




      localhost:8888
Create GAE Application
 Head on to https://appengine.google.com/




                     Press
                    „Create‟
Create GAE Application
        con‟t


        Enter mobile
          number
Create GAE Application
        con‟t


          Code here
        Enter mobile
          number
Create GAE Application
        con‟t

      Enter name



                   Scroll down and
                    press “Create
                     Application”
Create GAE Application
        con‟t

      Enter name
                   Application ID


                      Scroll down and
                       press “Create
                        Application”
Deploy to App Engine
Right click on project ->Properties.




   Application ID
Deploy to App Engine
               con‟t
 Right click on project -> Google -> Deploy to App
   Engine
Deploy to App Engine
               con‟t
 Right click on project -> Google -> Deploy to App
   Engine
What do we have?
       ./src
       ./src/log4j.properties
       ./src/META-INF
       ./src/META-INF/jdoconfig.xml (1)
       ./..
       ./src/se/asapehrsson/testportal/AndroidTest
       PortalServlet.java (2)
       ./war
       ./war/favicon.ico
       ./war/index.html (3)
       ./war/WEB-INF
       ./war/WEB-INF/appengine-web.xml (4)
       ./war/WEB-INF/classes
       ./war/WEB-INF/lib // A bunch of libs
       ./war/WEB-INF/logging.properties
       ./war/WEB-INF/web.xml (5)

GAE as Android Test Portal. Part 1.

  • 1.
    GAE as Android test portal Part 1. A walkthrough from Eclipse to ”Hello World”
  • 2.
    Outline  Introduction  InstallEclipse Plugin  Create a Web Application Project  Run locally  Create Application at GAE  Deploy to App Engine  What do we have?
  • 3.
    Introduction  GAE asAndroid test portal  Part 1. Environment and infrastructure in place  Part 2. Backend: Adding users. Data persistence and mail API  Part 3. Frontend. Zepto, Backbone  Development environment:  MacBook Pro  Eclipse Indigo
  • 4.
    GAE, source Wikipedia Google App Engine (GAE), is a platform as a service (PaaS) cloud computing platform for developing and hosting web applications in Google- managed data centres. Applications are sandboxed and run across multiple servers.  Google App Engine is free up to a certain level of consumed resources.  It was first released as a preview version in April 2008, and came out of preview in September 2011.
  • 5.
    GAE, source Wikipedia con‟t  Supported programming languages: Python, Java, Go.  Developer site: https://developers.google.com/appengine/  Deployment site: https://appengine.google.com/
  • 6.
    Install Eclipse Plugin Selectthe Help menu > Install New Software. Enter URL in Work with Select SDK and Plugin
  • 7.
    Create a project Selectthe File menu > New -> Web Application Project. Not using GWT! Default SDK
  • 8.
    Create a projectcon‟t We want sample code Press Finish and we are ready to go!
  • 9.
    Launch locally  Rightclick on project -> Run As -> Web Application localhost:8888
  • 10.
    Create GAE Application Head on to https://appengine.google.com/ Press „Create‟
  • 11.
    Create GAE Application con‟t Enter mobile number
  • 12.
    Create GAE Application con‟t Code here Enter mobile number
  • 13.
    Create GAE Application con‟t Enter name Scroll down and press “Create Application”
  • 14.
    Create GAE Application con‟t Enter name Application ID Scroll down and press “Create Application”
  • 15.
    Deploy to AppEngine Right click on project ->Properties. Application ID
  • 16.
    Deploy to AppEngine con‟t  Right click on project -> Google -> Deploy to App Engine
  • 17.
    Deploy to AppEngine con‟t  Right click on project -> Google -> Deploy to App Engine
  • 18.
    What do wehave? ./src ./src/log4j.properties ./src/META-INF ./src/META-INF/jdoconfig.xml (1) ./.. ./src/se/asapehrsson/testportal/AndroidTest PortalServlet.java (2) ./war ./war/favicon.ico ./war/index.html (3) ./war/WEB-INF ./war/WEB-INF/appengine-web.xml (4) ./war/WEB-INF/classes ./war/WEB-INF/lib // A bunch of libs ./war/WEB-INF/logging.properties ./war/WEB-INF/web.xml (5)