gae as android test portal. part 1

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

Upload: asa-pehrsson

Post on 30-Jun-2015

422 views

Category:

Self Improvement


0 download

DESCRIPTION

This is the first presentation in a series that describes hands on how GAE is used as a test portal for Android beta apps.

TRANSCRIPT

Page 1: GAE as Android Test Portal. Part 1

GAE as Android test

portalPart 1.

A walkthrough from Eclipse to ”Hello World”

Page 2: GAE as Android Test Portal. Part 1

Outline Introduction

Install Eclipse Plugin

Create a Web Application Project

Run locally

Create Application at GAE

Deploy to App Engine

What do we have?

Page 3: GAE as Android Test Portal. Part 1

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

Page 4: GAE as Android Test Portal. Part 1

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.

Page 5: GAE as Android Test Portal. Part 1

GAE, source Wikipedia con’t

Supported programming languages: Python, Java, Go.

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

Deployment site: https://appengine.google.com/

Page 6: GAE as Android Test Portal. Part 1

Install Eclipse PluginSelect the Help menu > Install New Software.

Enter URL in Work with

Select SDK and Plugin

Page 7: GAE as Android Test Portal. Part 1

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

Not using GWT!

Default SDK

Page 8: GAE as Android Test Portal. Part 1

Create a project con’t

We want sample code

Press Finish and we are ready to go!

Page 9: GAE as Android Test Portal. Part 1

Launch locally Right click on project -> Run As -> Web

Application

localhost:8888

Page 10: GAE as Android Test Portal. Part 1

Create GAE Application

Head on to https://appengine.google.com/

Press ‘Create’

Page 11: GAE as Android Test Portal. Part 1

Create GAE Application con’t

Enter mobile number

Page 12: GAE as Android Test Portal. Part 1

Create GAE Application con’t

Enter mobile numberCode here

Page 13: GAE as Android Test Portal. Part 1

Create GAE Application con’t

Enter name

Scroll down and press “Create

Application”

Page 14: GAE as Android Test Portal. Part 1

Create GAE Application con’t

Enter name

Scroll down and press “Create

Application”

Application ID

Page 15: GAE as Android Test Portal. Part 1

Deploy to App EngineRight click on project ->Properties.

Application ID

Page 16: GAE as Android Test Portal. Part 1

Deploy to App Engine con’t

Right click on project -> Google -> Deploy to App Engine

Page 17: GAE as Android Test Portal. Part 1

Deploy to App Engine con’t

Right click on project -> Google -> Deploy to App Engine

Page 18: GAE as Android Test Portal. Part 1

What do we have? ./src./src/log4j.properties./src/META-INF./src/META-INF/jdoconfig.xml (1)./.../src/se/asapehrsson/testportal/AndroidTestPortalServlet.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)