senchacon 2011 vgf showcase

52
Showcase: VGF Nils Dehl, Senior Developer (@nilsdehl) VGF Verkehrs Gesellschaft Frankfurt (Frankfurt am Main Transport Company)

Upload: nils-dehl

Post on 22-May-2015

2.869 views

Category:

Technology


0 download

DESCRIPTION

SenchaCon 2011 VGF Showcase

TRANSCRIPT

Page 1: SenchaCon 2011 VGF Showcase

Showcase: VGF

Nils Dehl, Senior Developer (@nilsdehl)

VGF Verkehrs Gesellschaft Frankfurt(Frankfurt am Main Transport Company)

Page 2: SenchaCon 2011 VGF Showcase

About

medkdVGF

Page 3: SenchaCon 2011 VGF Showcase

Nils Dehl

Senior Developer

Meetup Frankfurt

next 01.11.2011

Conference Talks

Trainings

Sencha Fanboy

of!cial ‘unof!cial’ Sencha conference photographer

Page 4: SenchaCon 2011 VGF Showcase

is.gd/senchacon

Page 5: SenchaCon 2011 VGF Showcase

dkd Internet Service GmbH

owner-managed full-service internet agency

Frankfurt Germany

development, communication & design

specialized in TYPO3

Ruby on Rails

Sencha Touch / ExtJS

42 employees

+ 350 projects

Page 6: SenchaCon 2011 VGF Showcase

Customer-Portfolio

Page 7: SenchaCon 2011 VGF Showcase

VGF – everyone’s along!for the ride

Frankfurt’s

transport company

city traf!c service provider

more than 320 rail vehicles and 180 buses

keep's 673,000 inhabitants on the move every day

Page 8: SenchaCon 2011 VGF Showcase

VGF App

The AppDemoArchitectureComponents

Page 9: SenchaCon 2011 VGF Showcase

The VGF mobility SmartApp

stoerung.vgf-ffm.de

Page 10: SenchaCon 2011 VGF Showcase

The VGF mobility SmartApp

search for nearby barrier free stations

informs about delays

displays twitter news

Sencha Touch

iPad, iPhone & Android Smartphones

Page 11: SenchaCon 2011 VGF Showcase

web to mobile

Page 12: SenchaCon 2011 VGF Showcase
Page 13: SenchaCon 2011 VGF Showcase
Page 14: SenchaCon 2011 VGF Showcase

DEMO

Page 15: SenchaCon 2011 VGF Showcase
Page 16: SenchaCon 2011 VGF Showcase
Page 17: SenchaCon 2011 VGF Showcase
Page 18: SenchaCon 2011 VGF Showcase

Architecture

Page 19: SenchaCon 2011 VGF Showcase

Architecture systems

JSON

Malfunction ToolRuby on Rails

HTML / JSON

VGF WebsiteCMS TYPO3

PHP

VGF SmartApp Sencha Touch

JS

Page 20: SenchaCon 2011 VGF Showcase

Architecture Sencha Touch App

based on Sencha Touch version 0.98 -> 1.0.1a

MVC pattern

one class / component per !le

concatenation and mini!cation of JS for production system by Ruby on Rails

SASS Theming

Page 21: SenchaCon 2011 VGF Showcase

File structure and naming

Page 22: SenchaCon 2011 VGF Showcase

File structure and naming

Page 23: SenchaCon 2011 VGF Showcase

Controller

Text

viewport controller

station controllermalfunction controller

Page 24: SenchaCon 2011 VGF Showcase

keep the DOM clean

Page 25: SenchaCon 2011 VGF Showcase

Components

Page 26: SenchaCon 2011 VGF Showcase

search

hundreds of stations in Frankfurt

search in local store

!lter by

search word

index

!ltered store used map view

Page 27: SenchaCon 2011 VGF Showcase

list optimisations

Page 28: SenchaCon 2011 VGF Showcase

before optimisation

custom templates

station list with some hundred records

on mobile devices scrolling performance problem!

Page 29: SenchaCon 2011 VGF Showcase

DOM optimisation for large list

Page 30: SenchaCon 2011 VGF Showcase

split in two views

Page 31: SenchaCon 2011 VGF Showcase

maps

show station marker to the lists

bound to list stores

problem

breaking changes in google maps API

solution

bind to google maps version<script type="text/javascript" src="http://maps.google.com/maps/api/ js?v=3.2&sensor=true" />

Page 32: SenchaCon 2011 VGF Showcase

Custom Templates

Page 33: SenchaCon 2011 VGF Showcase

Custom Templates

Page 34: SenchaCon 2011 VGF Showcase

count badges - store

Page 35: SenchaCon 2011 VGF Showcase

count badges - store

Page 36: SenchaCon 2011 VGF Showcase

count badges - store

Page 37: SenchaCon 2011 VGF Showcase

count badges - view

Page 38: SenchaCon 2011 VGF Showcase

twitter

easy twitter integration

twitter proxy

model

list view

custom template

custom bubble theming

Page 39: SenchaCon 2011 VGF Showcase

AD AD AD AD AD AD

Page 40: SenchaCon 2011 VGF Showcase
Page 41: SenchaCon 2011 VGF Showcase
Page 42: SenchaCon 2011 VGF Showcase
Page 43: SenchaCon 2011 VGF Showcase

Theming

Page 44: SenchaCon 2011 VGF Showcase

theming

using SASS for easy theming

custom colored theme

base 64 icons / images

CSS3

shadows for content container

twitter bubbles

Page 45: SenchaCon 2011 VGF Showcase

Optimisation

Page 46: SenchaCon 2011 VGF Showcase

files

concatenate 36 JS !les automatically to one !le on production stage

generate one CSS !le using SASS and compass

base 64 images

minify JS and CSS !le

Page 47: SenchaCon 2011 VGF Showcase

cache manifest

created vgf.manifest !le

phantomjs confess.js http://vgf-mobile.dev

<html manifest="vgf.manifest">

AddType text/cache-manifest .manifest

.htaccess with expire con!guration vgf.manifest

ExpiresActive On

ExpiresDefault "access"

Page 48: SenchaCon 2011 VGF Showcase

Conclusion

Page 49: SenchaCon 2011 VGF Showcase

Conclusion

use the MVC pattern

keep your DOM clean

manage DOM size in views

destroy unused views

optimize your app

use JS concatenation / mini!cation

use cache manifest

use SASS and compass for theming

Page 50: SenchaCon 2011 VGF Showcase

d dkdevelopmentkommunikationdesign

thank you.