36
Building Mobile Apps with Cordova , AngularJS and Ionic

Building Mobile Apps with Cordova , AngularJS and Ionic

Embed Size (px)

Citation preview

Page 1: Building Mobile Apps with Cordova , AngularJS and Ionic

Building Mobile Apps with Cordova , AngularJS and Ionic

Page 2: Building Mobile Apps with Cordova , AngularJS and Ionic

Who am I ?

• Soltani Kadhem

• Web & Mobile Developer at Novavision-it

• Website: www.kadhem-soltani.com

• Twitter : @kadhem_soltani

Page 3: Building Mobile Apps with Cordova , AngularJS and Ionic
Page 4: Building Mobile Apps with Cordova , AngularJS and Ionic

Agenda

1. Why make mobile app

2. Hybrid VS Native

3. What is Cordova ?

4. What is AngularJS ?

5. What is Ionic Framework ?

6. Q&A

7. Coding Time

Page 5: Building Mobile Apps with Cordova , AngularJS and Ionic

Why make mobile apps?

Page 6: Building Mobile Apps with Cordova , AngularJS and Ionic

Why make mobile apps ?

• You want to make mobile app because:

– The world is moving

– Everybody's making mobile apps these day

– For your business

– ...

Page 7: Building Mobile Apps with Cordova , AngularJS and Ionic

Why make mobile apps ?

• But:

– You're not mobile app developer?

– You don't know Java, Objective-C , c#?

– You want to build app that run everywhere

– ……….

Page 8: Building Mobile Apps with Cordova , AngularJS and Ionic

Let's try Hybrid!

Page 9: Building Mobile Apps with Cordova , AngularJS and Ionic

Hybrid vs Native

Page 10: Building Mobile Apps with Cordova , AngularJS and Ionic

Hybrid VS Native

• Native Apps

● Platform specific

● Respective development tools

● Time consuming

● Expensive development

Page 11: Building Mobile Apps with Cordova , AngularJS and Ionic

More Platforms, More Problems

Page 12: Building Mobile Apps with Cordova , AngularJS and Ionic

You need cool web technologies..

Page 13: Building Mobile Apps with Cordova , AngularJS and Ionic

Hybrid VS Native

• Hybrid Apps

● Platform independent (iOS, Android etc.)

● HTML5, CSS3 & JS

● Quick development

● Direct access to native APIs with Cordova

Page 14: Building Mobile Apps with Cordova , AngularJS and Ionic

Apache Cordova is a platform for building native mobile applications using HTML, CSS and JavaScript

Page 15: Building Mobile Apps with Cordova , AngularJS and Ionic

• 2009: PhoneGap started at Nitobi • 2011: PhoneGap purchased by Adobe • 2012: PhoneGap donated from Adobe to Apache • Software Foundation, and renamed as Cordova • Today: PhoneGap is a distribution of Cordova

PhoneGap vs. Cordova

Page 16: Building Mobile Apps with Cordova , AngularJS and Ionic

What is Cordova

• Platforms

● Android ● Blackberry ● FirefoxOS ● iOS ● Tizen ● WebOS ● Windows Phone 7 ● Windows Phone 8

Page 17: Building Mobile Apps with Cordova , AngularJS and Ionic

What is Cordova

• Plugins

● Battery Status ● Camera ● Contacts ● Device Orientation ● Dialogs ● File Transfer ● Geolocation ● Media Capture ● Network Information ● Splashscreen ● Statusbar ● Vibration

Page 18: Building Mobile Apps with Cordova , AngularJS and Ionic

Single Page Application Framework

Page 19: Building Mobile Apps with Cordova , AngularJS and Ionic

What is ?

- MVC Framework. - Developed by Google and the community

is:

Page 20: Building Mobile Apps with Cordova , AngularJS and Ionic

What is ?

Directives

Page 21: Building Mobile Apps with Cordova , AngularJS and Ionic

What is ?

Controller & scope

Page 22: Building Mobile Apps with Cordova , AngularJS and Ionic

What is ?

Model

Page 23: Building Mobile Apps with Cordova , AngularJS and Ionic

What is ?

Routing

Page 24: Building Mobile Apps with Cordova , AngularJS and Ionic

What is ?

Page 25: Building Mobile Apps with Cordova , AngularJS and Ionic

• A Front-end framework for mobile apps • Contains a lot of mobile-optimized HTML, CSS and JS

components • Best Friend with AngularJs • Uses Cordova to create, build, run, deploy mobile apps

is:

What is ?

Page 26: Building Mobile Apps with Cordova , AngularJS and Ionic

What is

Ionic solves multiple device resolution issues

Page 27: Building Mobile Apps with Cordova , AngularJS and Ionic

List

Page 28: Building Mobile Apps with Cordova , AngularJS and Ionic

Tabs

Page 29: Building Mobile Apps with Cordova , AngularJS and Ionic

Pull To Refresh

Page 30: Building Mobile Apps with Cordova , AngularJS and Ionic

Side Menu

Page 31: Building Mobile Apps with Cordova , AngularJS and Ionic

Install Ionic & Cordova Globally

npm install -g ionic cordova

Page 32: Building Mobile Apps with Cordova , AngularJS and Ionic

Ionic Templates

ionic start app blank ionic start app tabs ionic start app sidemenu

Page 33: Building Mobile Apps with Cordova , AngularJS and Ionic

Add Platform, Build & Emulate

Test on web browser

ionic serve

Add mobile platform (Android or iOS)

ionic platform add [android/ios]

Run test on device/emulator

ionic [run/emulate] [ android/ios]

Page 34: Building Mobile Apps with Cordova , AngularJS and Ionic

Do you have any question?

Page 35: Building Mobile Apps with Cordova , AngularJS and Ionic

< Coding Time />

Page 36: Building Mobile Apps with Cordova , AngularJS and Ionic

Thank you!