mobile apps with umbraco and phonegap

21
grow Mobile apps with Umbraco and PhoneGap Theo Paraskevopoulos. CodeGarden 2014

Upload: theo-paraskevopoulos

Post on 02-Jul-2015

1.947 views

Category:

Technology


5 download

DESCRIPTION

My presentation to the Umbraco CodeGarden 2014 conference, on how to create mobile apps with Umbraco CMS, Ionic and Phonegap.

TRANSCRIPT

Page 1: Mobile apps with Umbraco and Phonegap

grow

Mobile apps with Umbraco and PhoneGap

Theo Paraskevopoulos. CodeGarden 2014

Page 2: Mobile apps with Umbraco and Phonegap

grow

Hello!

Theo Paraskevopoulos Director, Designer, Developer GrowCreate, Oxford, UK www.growcreate.co.uk @theotron

Page 3: Mobile apps with Umbraco and Phonegap

grow

CodeGarden app

Page 4: Mobile apps with Umbraco and Phonegap

grow

A lot of moving parts.

grow

Page 5: Mobile apps with Umbraco and Phonegap

grow

Moving parts

§  4 Operating systems iOS, Android, Mac OS, Windows

§  3 web servers

Node, IIS, mini-Python

§  4 frameworks Umbraco, PhoneGap, Angular, Ionic, Sass

§  3 IDEs

Sublime, Visual Studio, XCode

Page 6: Mobile apps with Umbraco and Phonegap

grow

Here’s the plan

§ What is PhoneGap § Discuss UI frameworks § Make an app with Ionic § Hook up Umbraco § Build, test, release!

Page 7: Mobile apps with Umbraco and Phonegap

grow

What is PhoneGap?

HTML5 stack App wrapper Device features

Page 8: Mobile apps with Umbraco and Phonegap

grow

PhoneGap AKAs

PhoneGap Apache Cordova Adobe Build

Page 9: Mobile apps with Umbraco and Phonegap

grow

App architecture

JSON feed Single-page app Touch UI

Page 10: Mobile apps with Umbraco and Phonegap

grow

UI frameworks

TOPCOAT R

Full stack Custom stack

DOM

MV*

UI

Credit: Christophe Coenraets http://coenraets.org

Page 11: Mobile apps with Umbraco and Phonegap

grow

Why Ionic

“…built with Sass and optimized for AngularJS.… …minimal DOM manipulation, zero jQuery, and hardware accelerated transitions… …focused on native or hybrid apps instead of mobile websites… ionicframework.com

Page 12: Mobile apps with Umbraco and Phonegap

grow

The winning stack

Umbraco API Angular app Ionic UI

Page 13: Mobile apps with Umbraco and Phonegap

grow

grow

Let’s do this.

Page 14: Mobile apps with Umbraco and Phonegap

grow

Let’s do it!

§  Install Node § Command-line rocks! >  npm  install  –g  cordova  >  npm  install  –g  gulp  ionic  

>  ionic  start  cg14  …  

Page 15: Mobile apps with Umbraco and Phonegap

grow

Beta testing

>  ionic  build  android  >  generate  unsigned  .apk  >  distribute  OTA  

>  ionic  build  ios  >  generate  .ipa  [!]  >  distribute  OTA  

:|

:(

Page 16: Mobile apps with Umbraco and Phonegap

grow

Better testing

Our app Adobe Build Test Flight

Page 17: Mobile apps with Umbraco and Phonegap

grow

Release

>  add  icons  and  splash  screen  >  create  key  +  sign  file  >  generate  final  .apk  >  upload  to  play  store  ($25)  

6H

>  add  icons  and  splash  screen  >  sign  +  add  provisioning  file  >  generate  .ipa  in  xcode  >  upload  to  app  store  ($99)  

5D+

Page 18: Mobile apps with Umbraco and Phonegap

grow

We covered a lot of ground

§ PhoneGap wrapper § Big choice for frameworks § Clever little Ionic § Umbraco solid as ever § App stores. Meh

Page 19: Mobile apps with Umbraco and Phonegap

grow

Big picture

“…we believe that HTML5 will rule on mobile, exactly as it has on the desktop… ionicframework.com

Page 20: Mobile apps with Umbraco and Phonegap

grow

Big picture, small devices

Page 21: Mobile apps with Umbraco and Phonegap

grow

Until next year. @theotron

grow