SlideShare a Scribd company logo
Trilha Mobile
Loiane Groner
http://loiane.com
@loiane
Arquitetura de apps
com Sencha Touch 2
Me, Myself & I
•Gerente de Desenv Projetos @Citibank
•8+ XP TI
•Java JUG Leader
•Sencha Community Leader
•http://loiane.com
•@loiane
Momento Jabá
packpub.com ou amazon.com
Pq Mobile?
Pq
Multiplataforma?
1
TDC2013: Arquitetura de apps com Sencha Touch 2
TDC2013: Arquitetura de apps com Sencha Touch 2
TDC2013: Arquitetura de apps com Sencha Touch 2
TDC2013: Arquitetura de apps com Sencha Touch 2
#changeBrazil
Mobile
Android Java
BackBerry Java
iOS Objective-C
Palm OS C, C++, Pascal
Symbian C++
Windows Phone C#
Nativo x Web
2
TDC2013: Arquitetura de apps com Sencha Touch 2
App
Híbrida?
TDC2013: Arquitetura de apps com Sencha Touch 2
Nativo
Web
Acesso
Device
Velocidade Tempo
Desenvolvimento
App
Store
Cross
Platform
Sim Sim
?
Caro
Parcial Sussa
Sim
Não Sim
Não
Híbrido Sim ? Sussa* Sim Sim
Desenvolva
Teste
Build
Desenvolva
Teste
Build
Desenvolva
Teste
Build Build
{Híbrido
WORA
Sencha
Touch
3
Primeiro framework Javascript para
desenvolvimento de apps mobile ricas
usando padrões web - HTML 5
O que tem no Sencha Touch?
Componentes e Layouts
Themas e Ícones
Orientação e Animação
Eventos Touch e Scroller
Pacote de Dados
MVC
Componentes
Lists
- Nested, Grouped, Sortable
Carousel
Picker
Overlay
Slider
Forms & fields Toolbars & buttons HTML5
- Audio
-Video
- GeoLocation
Lists
- Nested, Grouped, Sortable
Carousel
Picker
Overlay
Slider
Forms & fields
Toolbars & buttons
HTML5
- Audio
- Video
Components
Ext.define('Contact', {
extend: 'Ext.data.Model',
config: {
fields: ['firstName', 'lastName']
}
});
var store = Ext.create('Ext.data.Store', {
model: 'Contact',
sorters: 'lastName',
grouper: {
groupFn: function(record) {
return record.get('lastName')[0];
}
},
data: [
{ firstName: 'Tommy', lastName: 'Maintz' },
{ firstName: 'Rob', lastName: 'Dougan' },
{ firstName: 'Ed', lastName: 'Spencer' },
{ firstName: 'Jamie', lastName: 'Avins' },
{ firstName: 'Aaron', lastName: 'Conran' },
{ firstName: 'Dave', lastName: 'Kaneda' },
{ firstName: 'Jacky', lastName: 'Nguyen' },
{ firstName: 'Abraham', lastName: 'Elias' },
{ firstName: 'Jay', lastName: 'Robinson'},
{ firstName: 'Nigel', lastName: 'White' },
{ firstName: 'Don', lastName: 'Griffin' },
{ firstName: 'Nico', lastName: 'Ferrero' },
{ firstName: 'Jason', lastName: 'Johnston'}
]
});
Ext.create('Ext.List', {
fullscreen: true,
itemTpl: '<div class="contact">{firstName} <strong>{lastName}</strong></div>',
store: store,
grouped: true
});
Forms
Ext.create('Ext.form.Panel', {
fullscreen: true,
items: [
{
xtype: 'textfield',
name: 'name',
label: 'Name'
},
{
xtype: 'emailfield',
name: 'email',
label: 'Email'
},
{
xtype: 'passwordfield',
name: 'password',
label: 'Password'
}
]
});
form.submit({
url: 'url/to/submit/to',
method: 'POST',
success: function() {
alert('form submitted successfully!');
}
});
Scrolling
Scrolling
Momentum/bounce physics
ardware accelerated
hroughout all components:
Lists
Carousel
Pickers
Eventos Touch
Baseado em Eventos Nativos
Abstraído para Performance
Eventos Adicionais:
- Tap
- Double tap
- Tap & hold - Swipe
- Rotate
- Drag & drop
Data Package
Models, Stores, e Proxies
- Associations
-Validation
- Local & server storage
Consumir web services
- JSON/P
- XML
-YQL
Temas
Use CSS3 & SASS
- Flexible themes
- Highly optimized
e.g.
Theming
$base-color: #ff6699
Use CSS3 & SASS
- Flexible themes
- Highly optimized
e.g.
Theming
$base-color: #ff6699
CSS3 com
Sass e Compass
TDC2013: Arquitetura de apps com Sencha Touch 2
TDC2013: Arquitetura de apps com Sencha Touch 2
"css": [
{
"path": "../../resources/css/base.css",
"update": "delta"
},
{
"path": "resources/css/sencha-touch.css",
"platform": ['chrome', 'safari', 'ios'],
"update": "delta"
},
{
"path": "resources/css/android.css",
"platform": ['android'],
"update": "delta"
},
{
"path": "resources/css/bb.css",
"platform": ['blackberry'],
"update": "delta"
},
{
"path": "resources/css/wp.css",
"platform": ['ie10'],
"update": "delta"
}
]
Gráficos
Touch Charts
Nossa App
4
Pré-
Requisitos
5
Sencha Touch SDK
Sencha Cmd
Local WebServer
Browser (safari, Chrome)
Emuladores
Dispositivos para testes
Arquitetando
+ Desenvolvimento
6
Workflow de
Desenvolvimento
Mockup
Arquitetura da app - MVC
Estrutura UI
Modelagem Dados
Binding Dados - View
Eventos - Controller
Página Detalhe e Form
Customização - Sass e Compass
Testes
Emulação
Teste Device
Produção
M
O
C
K
U
P
TDC2013: Arquitetura de apps com Sencha Touch 2
cd senchaTouchSDK
sencha app generate
MyContacts
../TDC2013/MyContacts
TDC2013: Arquitetura de apps com Sencha Touch 2
Testes Locais
Testes
Automatizados
http://bryntum.com
Ferramentas de
Debug
chrome dev tools
iWebInspector
Weinre
TDC2013: Arquitetura de apps com Sencha Touch 2
Build
sencha app build
sencha app build native
sencha app package run
packager.json
TDC2013: Arquitetura de apps com Sencha Touch 2
Tem Acesso
Nativo?
Acesso Nativo
App in Purchases
Câmera
Contatos (read only)*
Connection (online/offline)
Device Info (nome, plataforma, uuid)
GeoLocation
Notifications (vibrar)
Orientation
Push Notifications
Acesso Nativo
App in Purchases
Câmera
Contatos (read only)*
Connection (online/offline)
Device Info (nome, plataforma, uuid)
GeoLocation
Notifications (vibrar)
Orientation
Push Notifications
Sencha Packager*
PhoneGap
Emulator
Sencha Touch não tem
Acelerômetro
Compass
File
Phone Gap
https://github.com/loiane/
senchatouch2-contacts
Obrigada!
http://loiane.com
@loiane
http://slideshare.com/loianeg

More Related Content

What's hot (13)

PDF
3D na Webu
Pavol Hejný
 
PDF
Fundamental JQuery
Achmad Solichin
 
PPT
Django CMS & Integrating it with django shop
Mindfire Solutions
 
ZIP
The 5 Layers of Web Accessibility
Dirk Ginader
 
PDF
Responsive design: techniques and tricks to prepare your websites for the mul...
Andreas Bovens
 
PDF
Responsive & Responsible Web Design in DNN
gravityworksdd
 
PDF
Developing Context-sensitive Help for Web-based Applications - Scott DeLoach,...
Scott DeLoach
 
PDF
Desenvolvimento web com Ruby on Rails (parte 6)
Joao Lucas Santana
 
PDF
Use Web Skills To Build Mobile Apps
Nathan Smith
 
PDF
Introduction to jQuery Mobile - Web Deliver for All
Marc Grabanski
 
PPSX
Responsive Web Design: Tips and Tricks
Gautam Krishnan
 
PPTX
JavaScript Presentation Frameworks and Libraries
Oleksii Prohonnyi
 
3D na Webu
Pavol Hejný
 
Fundamental JQuery
Achmad Solichin
 
Django CMS & Integrating it with django shop
Mindfire Solutions
 
The 5 Layers of Web Accessibility
Dirk Ginader
 
Responsive design: techniques and tricks to prepare your websites for the mul...
Andreas Bovens
 
Responsive & Responsible Web Design in DNN
gravityworksdd
 
Developing Context-sensitive Help for Web-based Applications - Scott DeLoach,...
Scott DeLoach
 
Desenvolvimento web com Ruby on Rails (parte 6)
Joao Lucas Santana
 
Use Web Skills To Build Mobile Apps
Nathan Smith
 
Introduction to jQuery Mobile - Web Deliver for All
Marc Grabanski
 
Responsive Web Design: Tips and Tricks
Gautam Krishnan
 
JavaScript Presentation Frameworks and Libraries
Oleksii Prohonnyi
 

Similar to TDC2013: Arquitetura de apps com Sencha Touch 2 (20)

PDF
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGap
Loiane Groner
 
PDF
Sencha Touch e PhoneGap: SouJava - IBM Maio 2013
Loiane Groner
 
PPTX
Seminar Android - Pengenalan PhoneGap
Nur Hidayat
 
PDF
beyond tellerrand: Mobile Apps with JavaScript – There's More Than Web
Heiko Behrens
 
PDF
HTML5 and the dawn of rich mobile web applications pt 1
James Pearce
 
PDF
Bd conf sencha touch workshop
James Pearce
 
PDF
An Introduction to Sencha Touch
James Pearce
 
KEY
Txjs
Brian LeRoux
 
PDF
There's more than web
Matt Evans
 
PDF
HTML5 and the dawn of rich mobile web applications pt 2
James Pearce
 
PDF
A Snapshot of the Mobile HTML5 Revolution
James Pearce
 
PDF
Building Cross Platform Mobile Web Apps
James Pearce
 
ODP
Desenvolvimento Mobile Híbrido
Juliano Martins
 
PPTX
Intro to sencha touch
Chandra S Oemarjadi
 
PDF
Create a mobile web app with Sencha Touch
James Pearce
 
PDF
Cross platform mobile web apps
James Pearce
 
PPTX
Introduction to jQueryMobile
Jeyakumaran Mayooresan
 
PDF
NRWConf - Workshop Mobile Apps
Peter Hecker
 
PPT
Intro to mobile development with sencha touch
jgarifuna
 
PDF
A mobile web app for Android in 75 minutes
James Pearce
 
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGap
Loiane Groner
 
Sencha Touch e PhoneGap: SouJava - IBM Maio 2013
Loiane Groner
 
Seminar Android - Pengenalan PhoneGap
Nur Hidayat
 
beyond tellerrand: Mobile Apps with JavaScript – There's More Than Web
Heiko Behrens
 
HTML5 and the dawn of rich mobile web applications pt 1
James Pearce
 
Bd conf sencha touch workshop
James Pearce
 
An Introduction to Sencha Touch
James Pearce
 
There's more than web
Matt Evans
 
HTML5 and the dawn of rich mobile web applications pt 2
James Pearce
 
A Snapshot of the Mobile HTML5 Revolution
James Pearce
 
Building Cross Platform Mobile Web Apps
James Pearce
 
Desenvolvimento Mobile Híbrido
Juliano Martins
 
Intro to sencha touch
Chandra S Oemarjadi
 
Create a mobile web app with Sencha Touch
James Pearce
 
Cross platform mobile web apps
James Pearce
 
Introduction to jQueryMobile
Jeyakumaran Mayooresan
 
NRWConf - Workshop Mobile Apps
Peter Hecker
 
Intro to mobile development with sencha touch
jgarifuna
 
A mobile web app for Android in 75 minutes
James Pearce
 
Ad

Recently uploaded (20)

PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
The Future of Artificial Intelligence (AI)
Mukul
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Ad

TDC2013: Arquitetura de apps com Sencha Touch 2