Coder Social home page Coder Social logo

ionic-2-meetup's Introduction

Ionic 2

Une application mobile en un rien de temps

Johann Brancourt

Présentation

Ionic 2

  • Version 2.0.0 beta 9

  • UI Composants, icônes, thèmes

  • Stack

    • Angular 2

    • TypeScript (aussi ES5 ou ES6)

    • Cordova

TypeScript

  • Développé par Microsoft

  • Sur-ensemble de JavaScript

  • Typage, création de classes, import de modules, décorateurs (@)

TS
Figure 1. TypeScript

Angular 2

  • Compatible avec Typescript (ou Dart ou ES5)

  • Version 2.0.0 beta sortie le 15/12/2015

  • Première RC sortie le 02/05/2016

  • Basé sur les composants

Cordova

  • Framework JS permettant d’encapsuler du code JS, HTLM et CSS dans un conteneur natif

  • Code exécuté et rendu par l’intermédiaire d’une webview

Les outils

  • Un langage (TS ou ES6)

  • Deux Frameworks

    • Angular 2

    • Cordova

  • Mais encore:

    • Node.js pour NPM (Node Package Manager)

    • Gulp: Task runner

    • Sass: Sur ensemble de css

    • TSC: TypeScript Compiler

    • Browserify

    • Android SDK

    • ADB pour le debug

Créer une application

Installation

  • Installer node.js pour avoir npm

Installer Ionic 2
npm install –g ionic@beta
Créer un projet
ionic start my_project --v2 --ts

Structure du projet

Project
Figure 2. Structure du projet

Rendu du projet

Dans un navigateur
ionic serve
Via Ionic lab
ionic serve --lab

Génération

Générer une nouvelle page
ionic generate page camera –ts

Crée camera.ts, camera.scss, camera.html dans le dossier app\pages\camera

D’autres générations sont possibles: http://ionicframework.com/docs/v2/cli/generate/

UI Components

Plugins

Installer un plugin
ionic plugin add cordova-plugin-camera --save

Installe le plugin et l’ajoute en tant que dépendance dans package.json

ionic-2-meetup's People

Contributors

johannbr avatar

Watchers

James Cloos avatar  avatar

Forkers

maxamillion32

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.