SlideShare a Scribd company logo
 
Développer une application
mobile connectée à un
backend REST
Charles Moulliard (@cmoulliard)
21 Jan 2016
Who
Apache Committer, Fuse Expert, Architect
Blog:
Twitter:
Email:
Committer on Apache Camel, Karaf, Fabric8, Hawtio … & PMC
Technology evangelist
Mountain Biker, Belgian Beer Fan, Blogger
http://cmoulliard.github.io
@cmoulliard
cmoulliard@redhat.com
Agenda
Requirements
Hybrid HTML5 Mobile
Frameworks
Tools
Integration Technology
Cloud Mobile Platform
Demo - Part I / Local
Demo - Part II / Backend
Hybrid Mobile Dev
HTML5
 
JavaScript
Model View
Controller
Improve project design
Reduce coding lines
 
Ionic
Fully integrated with
AngularJS
Provide AngularJS Extension
Huge collection of Widgets
(List, Buttons, Footers, …)
Ionic List
blog.controller('FindAllCtrl',function($scope,fhcloud,articleService){
$scope.articles={};
fhcloud('/articles/',null,'GET')
.then(function(response){
articleService.replaceArticles(response);
$scope.articles=response;
})
});
<ion-viewview-title="Articles">
<ion-content>
<ion-list>
<ion-itemng-repeat="articleinarticles|orderBy:['user','title']"href="#/app/article/{{article.id
{{article.title}},posted{{article.postDate}},by{{article.user}}
</ion-item>
</ion-list>
</ion-content>
</ion-view>
Apache Cordova
Web Based App wrapped into a
native Shell
Access to native feature through JS
Bridge
Multiplatform
Cordova Tooling
cordovacreate<PATH>[ID[NAME[CONFIG]]][options][PLATFORM...]
CreateaCordovaproject
PATH.........................Wheretocreatetheproject
ID...........................reverse-domain-stylepackagename-usedin<widgetid>
NAME.........................humanreadablefield
cordovaplugin<command>[options]
Manageprojectplugins
add<pluginid>|<directory>|<giturl>[...].....addspecifiedplugins
pluginidwillbematchedin--searchpath/registry
directoryisadirectorycontainingaplugin
giturlisagitrepocontainingaplugin
Ionic Tooling
_ _
(_) (_)
_ ___ ___ _ ___
||/_|'_||/__|
||(_)|||||(__
|_|___/|_||_|_|___| CLIv1.7.12
=======================
serve[options]............................... Startalocaldevelopmentserverforappdev/testing
[--port|-p] ............................ DevserverHTTPport(8100default)
[--livereload-port|-r] ................. LiveReloadport(35729default)
[--address] ............................ Usespecificaddressorreturnwithfailure
[--platform|-t] ........................ Startservewithaspecificplatform(ios/android)
platform[options]<PLATFORM>................. AddplatformtargetforbuildinganIonicapp
[--noresources|-r] .................. DonotadddefaultIoniciconsandsplashscreenresources
[--nosave|-e] ....................... Donotsavetheplatformtothepackage.jsonfile
package<command>[options]................... UseIonicPackagetobuildyourapp(alpha)
<command>buildandroid,buildios,list,info,ordownload
[--release] .......................... (build<platform>)Markthisbuildasarelease
[--profile|-p<tag>] ................. (build<platform>)SpecifytheSecurityProfiletousewith
[--destination|-d<path>] ............ (download)Specifythedestinationdirectorytodownloadyourpackagedap
----
 
How to integrate
Nodejs Proxy Server
JS Front Service
blog.service('fhcloud',function($q){
returnfunction(cloudEndpoint,data,operation){
vardefer=$q.defer();
varparams={
path:cloudEndpoint,
method:operation,
contentType:"application/json",
data:data,
timeout:15000
};
$fh.cloud(params,defer.resolve,defer.reject);
returndefer.promise;
};
});
REST endpoint (Proxy)
app.get('/articles/searchid/:id',blogService.findById);
app.get('/articles',blogService.findAll);
app.get('/articles/searchuser/:user',blogService.findByUser)
app.post('/articles',blogService.newPost);
exports.findById=function(req,res,next){
console.log("ServiceFindByIdcalled");
varid=req.params.id;
request('http://BACKEND_SERVER:9191/blog/article/search/id/'+id,function(error,response,body)
if(!error&&response.statusCode==200){
console.log(body);
res.send(body);
}
})
};
 
Demo - Part I
 
Demo - Part II
Questions
Twitter :
Mobile Backend github.com/FuseByExample/mobile-rest-in-action
REST with Camel github.com/FuseByExample/rest-dsl-in-action
@cmoulliard



More Related Content

PDF
MicroService and MicroContainer with Apache Camel
PDF
Develop a Mobile Application coonected to a REST backend
PDF
PhoneGap Introduction
PDF
Loopback presentation by tineco
PPTX
Node Interactive : 7 years, 7 design patterns, will node continue to outshine
PDF
Picking the Right Node.js Framework for Your Use Case
PDF
Getting Started with the Node.js LoopBack APi Framework
PPTX
Xamarin workshop
MicroService and MicroContainer with Apache Camel
Develop a Mobile Application coonected to a REST backend
PhoneGap Introduction
Loopback presentation by tineco
Node Interactive : 7 years, 7 design patterns, will node continue to outshine
Picking the Right Node.js Framework for Your Use Case
Getting Started with the Node.js LoopBack APi Framework
Xamarin workshop

What's hot (20)

PDF
LoopBack: a productivity booster for MEAN
PPTX
Xamarin - Beyond the Basics
PPTX
OpenSource Node.js API Framework and Server for Enterprise
PPTX
StrongLoop Overview
PPTX
Triangle Node Meetup : APIs in Minutes with Node.js
PPTX
StrongLoop Overview
PPTX
Working with LoopBack Models
PDF
Seattle StrongLoop Node.js Workshop
PPTX
How We Built a Mobile Electronic Health Record App Using Xamarin, Angular, an...
PDF
Design patterns talk_node_summit
PDF
Node.js Frameworks & Design Patterns Webinar
PDF
GUIハンズオンをCLIでやってみた
PPTX
Triangle Node.js DevOps
PDF
Xamarin.Forms
PPTX
Connect js nodejs_api_shubhra
PPTX
Building a Node.js API backend with LoopBack in 5 Minutes
PDF
What's New with Confluence Connect
PDF
Toronto node js_meetup
ODT
E4 Eclipse Super Force
PPT
COMAQA Conf #2. Никита Мещаненко. Xamarin test cloud
LoopBack: a productivity booster for MEAN
Xamarin - Beyond the Basics
OpenSource Node.js API Framework and Server for Enterprise
StrongLoop Overview
Triangle Node Meetup : APIs in Minutes with Node.js
StrongLoop Overview
Working with LoopBack Models
Seattle StrongLoop Node.js Workshop
How We Built a Mobile Electronic Health Record App Using Xamarin, Angular, an...
Design patterns talk_node_summit
Node.js Frameworks & Design Patterns Webinar
GUIハンズオンをCLIでやってみた
Triangle Node.js DevOps
Xamarin.Forms
Connect js nodejs_api_shubhra
Building a Node.js API backend with LoopBack in 5 Minutes
What's New with Confluence Connect
Toronto node js_meetup
E4 Eclipse Super Force
COMAQA Conf #2. Никита Мещаненко. Xamarin test cloud
Ad

Viewers also liked (8)

PPT
Apache ServiceMix4 : Dream platform for Java Integration
PPT
Kanta-asiakassuhteen muodot
PDF
Be jug 090611_apacheservicemix
PPT
Camelone-2012 HTML5 WebSocket ActiveMQ/Camel
PDF
HTML5 WebSockets
PDF
® Opportunity Potential Score (OPS) ™
PDF
Fusesource camel-persistence-part1-webinar-charles-moulliard
PDF
Fusesource camel-persistence-part2-webinar-charles-moulliard
Apache ServiceMix4 : Dream platform for Java Integration
Kanta-asiakassuhteen muodot
Be jug 090611_apacheservicemix
Camelone-2012 HTML5 WebSocket ActiveMQ/Camel
HTML5 WebSockets
® Opportunity Potential Score (OPS) ™
Fusesource camel-persistence-part1-webinar-charles-moulliard
Fusesource camel-persistence-part2-webinar-charles-moulliard
Ad

Similar to Design a Mobil Hybrid Application connected to a REST Backend (20)

PDF
Surviving the Zombie Apocalypse of Connected devices - Jfokus 2013
PPTX
Android App Development using HTML5 Technology
PDF
HTML Hypermedia APIs and Adaptive Web Design - Nordic APIs
PDF
Made for Mobile - Let Office 365 Power Your Mobile Apps
ODP
Web2.0 2012 - lesson 7 - technologies and mashups
PPTX
TiConf EU 2014
PPTX
Mini project final presentation
PPTX
Angularjs Tutorial for Beginners
PPTX
API Design: Women Who Code (WWCode) DFW
PDF
API Platform: A Framework for API-driven Projects
PPTX
Easy2park - A smarter way to find a parking lot
PPTX
Angular1x and Angular 2 for Beginners
PDF
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)
PPTX
Mobile applications for SharePoint using HTML5
PPTX
Angular jS Introduction by Google
 
PDF
Cross Platform Mobile Apps with the Ionic Framework
PDF
The WebKit project
PDF
Ionic event: March 2021
PDF
Intro to appcelerator
PPTX
Loopback: An Easy and Robust Mobile Backend - Michael Hantler & Aviv Callande...
Surviving the Zombie Apocalypse of Connected devices - Jfokus 2013
Android App Development using HTML5 Technology
HTML Hypermedia APIs and Adaptive Web Design - Nordic APIs
Made for Mobile - Let Office 365 Power Your Mobile Apps
Web2.0 2012 - lesson 7 - technologies and mashups
TiConf EU 2014
Mini project final presentation
Angularjs Tutorial for Beginners
API Design: Women Who Code (WWCode) DFW
API Platform: A Framework for API-driven Projects
Easy2park - A smarter way to find a parking lot
Angular1x and Angular 2 for Beginners
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)
Mobile applications for SharePoint using HTML5
Angular jS Introduction by Google
 
Cross Platform Mobile Apps with the Ionic Framework
The WebKit project
Ionic event: March 2021
Intro to appcelerator
Loopback: An Easy and Robust Mobile Backend - Michael Hantler & Aviv Callande...

More from Charles Moulliard (12)

PDF
Security enforcement of Java Microservices with Apiman & Keycloak
PDF
Microservices with WildFly Swarm - JavaSI 2016
PDF
Security enforcement of Microservices with API Management
PDF
Fuse technology-2015
PDF
Continuous Delivery & Integration with JBoss Fuse on Openshift
PDF
Development of social media projects with Apache Camel, Fabric8 & Hawtio
PDF
iPaas with Fuse Fabric Technology
PDF
Make easier Integration of your services with Fuse Solutions - RedHat 2013
PDF
Karaf ee-apachecon eu-2012
PDF
Cloud fuse-apachecon eu-2012
PDF
Devoxx 2011 integration-camel-cxf-servicemix-activemq
PDF
Fuse source parisjug-10052011
Security enforcement of Java Microservices with Apiman & Keycloak
Microservices with WildFly Swarm - JavaSI 2016
Security enforcement of Microservices with API Management
Fuse technology-2015
Continuous Delivery & Integration with JBoss Fuse on Openshift
Development of social media projects with Apache Camel, Fabric8 & Hawtio
iPaas with Fuse Fabric Technology
Make easier Integration of your services with Fuse Solutions - RedHat 2013
Karaf ee-apachecon eu-2012
Cloud fuse-apachecon eu-2012
Devoxx 2011 integration-camel-cxf-servicemix-activemq
Fuse source parisjug-10052011

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Big Data Technologies - Introduction.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
cuic standard and advanced reporting.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Advanced methodologies resolving dimensionality complications for autism neur...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
MYSQL Presentation for SQL database connectivity
Big Data Technologies - Introduction.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Network Security Unit 5.pdf for BCA BBA.
NewMind AI Monthly Chronicles - July 2025
Digital-Transformation-Roadmap-for-Companies.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
cuic standard and advanced reporting.pdf
Chapter 3 Spatial Domain Image Processing.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Understanding_Digital_Forensics_Presentation.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...

Design a Mobil Hybrid Application connected to a REST Backend