Ionic
Links
http://ionicframework.com/getting-started/
Siehe auch:
Installation
- Node.js falls nicht installiert (evtl, PATH anpassen)
- im Terminal über npm cordova ionic und gulp installieren
sudo npm install -g cordova ionic gul
Ionic Console - Befehle
Available tasks: (use --help or -h for more info) start .......... Starts a new Ionic project in the specified PATH serve .......... Start a local development server for app dev/testing platform ....... Add platform target for building an Ionic app run ............ Run an Ionic project on a connected device emulate ........ Emulate an Ionic project on a simulator or emulator build .......... Locally build an Ionic project for a given platform plugin ......... Add a Cordova plugin resources ...... Automatically create icon and splash screen resources (beta) Put your images in the ./resources directory, named splash or icon. Accepted file types are .png, .ai, and .psd. Icons should be 192x192 px without rounded corners. Splashscreens should be 2208x2208 px, with the image centered in the middle. upload ......... Upload an app to your Ionic account share .......... Share an app with a client, co-worker, friend, or customer lib ............ Gets Ionic library version or updates the Ionic library setup .......... Configure the project with a build tool (beta) io ............. Integrate your app with the ionic.io platform services (alpha) security ....... Store your app's credentials for the Ionic Platform (alpha) push ........... Upload APNS and GCM credentials to Ionic Push (alpha) package ........ Use Ionic Package to build your app (alpha) config ......... Set configuration variables for your ionic app (alpha) browser ........ Add another browser for a platform (beta) service ........ Add an Ionic service package and install any required plugins add ............ Add an Ion, bower component, or addon to the project remove ......... Remove an Ion, bower component, or addon from the project list ........... List Ions, bower components, or addons in the project ions ........... List available ions to add to your project templates ...... List available Ionic starter templates info ........... List information about the users runtime environment help ........... Provides help for a certain command link ........... Sets your Ionic App ID for your project hooks .......... Manage your Ionic Cordova hooks state .......... Saves or restores state of your Ionic Application using the package.json file docs ........... Opens up the documentation for Ionic
Hybrid Apps mit Ionic und PhoneGap Builder
Links
https://www.youtube.com/watch?v=C-UwOWB9Io4&feature=youtu.be
Einleitung
Ionic basiert auf AngularJS, mit diesen Tools erstellen wir die Webapp, die dann mit PhoneGap Builder zu einer Hybrid App gebündelt wird.
AngularJS ist ein Framework zur WebApp Entwicklung mit hoher Performance. Ionic steuert viele Komponenten und in MobileApp übliche Bedienelemente bei.
Schnelle App mit Ionic
- Install Ionic (s.o.)
- Create App
- Build and Test
Create
Verzeichnis erstellen z.B.
/myUserfolder/myApp ionic start myApp tabs
Build and test
cd myApp ionic platform add ios ionic build ios ionic emulate ios
Projekt anlegen
Es gibt verschiedene Grundtemplates
- leer
$ ionic start myApp blank
- tab navigation
$ ionic start myApp tabs
- side navigation
$ ionic start myApp sidemenu
Quicktips für Projekte
- cd into your project:
cd firstIonicAppOrAnotherName
- Setup this project to use Sass:
ionic setup sass
- Develop in the browser with live reload:
ionic serve
- Add a platform (ios or Android):
ionic platform add ios [android]
Note: iOS development requires OS X currently See the Android Platform Guide for full Android installation instructions: https://cordova.apache.org/docs/en/edge/guide_platforms_android_index.md.html
- Build your app:
ionic build <PLATFORM>
- Simulate your app:
ionic emulate <PLATFORM>
- Run your app on a device:
ionic run <PLATFORM>
- Package an app using Ionic package service:
ionic package <MODE> <PLATFORM>
- Invite anyone to preview and test your app
ionic share EMAIL
For more help use ionic --help or ionic docs Visit the Ionic docs: http://ionicframework.com/docs
View App http://view.ionic.io
Generate splash screens and icons with ionic resource http://ionicframework.com/blog/automating-icons-and-splash-screens/
Ionic Account
Create an ionic.io account to send Push Notifications and use the Ionic View app? (Y/n):