intro to hybrid mobile development && ionic

20
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT Introduction to hybrid mobile development && Ionic @claudiobisconti

Upload: fioriela-bego

Post on 07-Jan-2017

28 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.IT

Introduction to hybrid mobile development && Ionic@claudiobisconti

Page 2: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

1. Native VS Hybrid

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Page 3: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

1.1 When we use hybrid applications?

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Generally when your application can’t have:

❏ 3D elements

❏ Fluid animations and smooth contents

(with embarrassing animations)

❏ Your application target contains Android <= 4.4.4

But it works...❏ for a DEMO :)

Page 4: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

1.2 Why we use hybrid applications?

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Page 5: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

1.3 And...

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Why write two software to develop only one functionality?

Hamlet, not Sherlock

Page 6: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

2. IONIC

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Page 7: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

2.0 Apache Cordova

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Page 8: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

2.0 Apache Cordova

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Page 9: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

2.1 AngularJs

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Page 10: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

2.2 Acquire Angular skill in 5 minutes

Introduction to hybrid mobile development && Ionic - @claudiobisconti

RULE #1: TWO-WAY BINDING

<html>...<body><div> Say <b>{{ myName }}</b></div><input type="text" ng-model="myName" />

...</html>

'use strict';var app = angular.module('myApp',[]);

app.controller('MyController', ['$scope',

function($scope) { $scope.myName = 'Heisenberg'; }]);

HTML JAVASCRIPT

Page 11: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

2.3 Acquire Angular skill in 5 minutes

Introduction to hybrid mobile development && Ionic - @claudiobisconti

RULE #2: ng, ng-everywhere

<html>...<body ng-app="MyApplication">...

<div ng-controller="MyController"><div class="people" ng-repeat="person in persons">

<div>{{ person.name }} - {{ person.surname }}</div></div>

</div>...</body></html>

Page 12: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

2.4 Acquire Angular skill in 5 minutes

Introduction to hybrid mobile development && Ionic - @claudiobisconti

RULE #3: actions

<html>...<body ng-app="MyApplication">...

<div ng-controller="MyController">...

<button class="btn" ng-click="apply()"></button>...

</div>...</body></html>

Page 13: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

2.5 Acquire Angular skill in 5 minutes

Introduction to hybrid mobile development && Ionic - @claudiobisconti

RULE #4: search on google

RULE #5: search on stackoverflow

RULE #6: Study Angular seriously :)

Page 14: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

3. Our task!

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Create a mobile application who have:

❏ Signup / Login / Logout❏ Not ugly❏ Works on iOS and Android and...

browser❏ Do something

Page 15: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

4. Ionic creator

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Page 16: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

5. Show me the code!

~ npm install -g cordova ionic bower~ ionic start myApp blank......~ cd myApp~ ionic serve

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Page 17: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

5.1 Show me the code!

~ ionic platform add android~ ionic build android~ ionic run android

~ ionic login

~ ionic upload~ ionic share [email protected]

Build and running on mobile device

Build and running on mobile device (with Ionic View)

Noteis not possible to add native plugin to Ionic View :(

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Page 18: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

5.2 Adding modules

~ ionic plugin add **plugin_name**~ ionic plugin add https://myrepofrom.git/gitname/

Add modules

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Page 19: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

6. Live demo

Introduction to hybrid mobile development && Ionic - @claudiobisconti

Page 20: Intro to Hybrid Mobile Development && Ionic

CORPORATE PRESENTATION 2016

WWW.COMMITSOFTWARE.ITwww.commitsoftware.it

Thanks

Introduction to hybrid mobile development && Ionic - @claudiobisconti