blog.budacode.com
marcellkiss
@martzellk
Fullstack JS @ Budacode
Objective-C or Swift
Java
C#
thing?
Ionic is an open source
front-end SDK for developing
hybrid mobile apps with HTML5."
Performant!
Angular friendly!
Native focused!
Awesome CLI!
Source: trends.google.com
// Install the generator
$ npm install -g cordova ionic
// Start an app
$ ionic start myApp tabs
// Let's run it
$ cd myApp
$ ionic platform add ios
$ ionic build ios
$ ionic emulate ios
*Don't forget to install the android SDK
headers, tabs, lists, inputs, buttons, icons, etc.
gestures, events, popups, sliding menus, etc.
And all this with ion- tags, attributes and AngularJS modules. The docs is great.
$ ionic start myapp [template]
Named templates, local directories, github-codepen-plunker urls
Livereload works like a charm... Config it via the ionic.project file
$ ionic serve
$ ionic serve --lab
$ ionic platform ios android
$ ionic build android
$ ionic emulate/run [platform] --livereload --consolelogs
$ ionic resources --icon --splash
$ ionic package debug android
$ ionic upload
$ ionic share <EMAIL>
There is a great app called Ionic View:
There is much-much more:
$ ionic help
Cordova + Angular = ngCordova
$ bower install ngCordova
... angular.module('myApp', ['ngCordova']) ...
$ ionic plugin add cordova-plugin-camera
... module.controller('PictureCtrl', function($scope, $cordovaCamera) {
... $cordovaCamera.getPicture( ...
There is a big list of plugins and it's also easy to write one!
something!
Let's create an app, where
we can vote for the meetup topics!
.controller("SampleCtrl", function($scope, $firebaseObject, $firebaseArray) {
var ref = new Firebase("https://scorching-torch-4715.firebaseio.com/sampleEntity");
// download the data into a local object
$scope.sampleData = $firebaseArray(ref);
Real time database in the cloud
Developed by Google
Works well with Angular
// Ionic CSS
link(href='//code.ionicframework.com/nightly/css/ionic.css', rel='stylesheet')
// Ionic bundle
script(src='//code.ionicframework.com/nightly/js/ionic.bundle.js')
// Angular
script(src='https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js')
// Firebase
script(src='https://cdn.firebase.com/js/client/2.2.4/firebase.js')
// Angular-fire
script(src='https://cdn.firebase.com/libs/angularfire/1.1.1/angularfire.min.js')
Templates
Routing
and some logic
Can be useful: docs
$ cordova build --release android
$ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name
-keyalg RSA -keysize 2048 -validity 10000
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore
my-release-key.keystore HelloWorld-release-unsigned.apk alias_name
$ zipalign -v 4 HelloWorld-release-unsigned.apk HelloWorld.apk
Publish and enjoy!
keep in touch - @martzellk
and read for the details - blog.budacode.com
Mobile user stats - http://bigseadesign.com/strategic-approach/resolutions-pun-intended-for-your-website
Internet usage stats - http://money.cnn.com/2014/02/28/technology/mobile/mobile-apps-internet/
Hybrid frameworks -
http://www.sitepoint.com/top-7-hybrid-mobile-app-frameworks/
http://moduscreate.com/5-best-mobile-web-app-frameworks-ionic-angulalrjs/
https://www.airpair.com/ionic-framework/posts/hybrid-apps-ionic-famous-f7-onsen
Docs -
http://ionicframework.com/docs
https://www.firebase.com/docs/
And a lot of Github and Codepen sites...