10
Onsen UI ででででででででででででで 2016.04.23 ででででででで でででででででででで

Onsen UIでアプリケーション作ってみた

Embed Size (px)

Citation preview

Page 1: Onsen UIでアプリケーション作ってみた

Onsen UI でアプリケーション作ってみた

2016.04.23 フロントエンド モバイルアプリ勉強会✕

Page 2: Onsen UIでアプリケーション作ってみた

自己紹介• 牧 昂拡• 株式会社グラッドキューブ勤務• フルスタックエンジニアもどき• 最近 Polymer 勉強中

Page 3: Onsen UIでアプリケーション作ってみた

OnsenUI とは?

Page 4: Onsen UIでアプリケーション作ってみた

• HTML5 UI フレームワーク• Monaca に標準装備されている• AngularJS と連携している• 最近 v2.0bata がリリースされてた• モバイルハイブリットアプリ向け UIFW• Web でもちゃんと使えるよ!←今日ココ

Page 5: Onsen UIでアプリケーション作ってみた

特徴• AngularJS, jQuery• Cordova, PhoneGap をサポート• CustomElements 対応• 他の FW に比べ Web に順応しやすい• クラスの命名規則は結構特殊

Page 6: Onsen UIでアプリケーション作ってみた

ほかのモバイル FW

• jQuery Mobile• Ionic• famo.us

Page 7: Onsen UIでアプリケーション作ってみた

Getting Started• Web

sudo nam i -g bowerbower i onsenui

• Cordova, Monaca は割愛します

Page 8: Onsen UIでアプリケーション作ってみた

実際に作ってみた• github

$ git clone https://github.com/takahiromaki/onsen-ui-sample.git$ npm i && gulp build && node index.js

• Docker$ docker pull taka0225/onsen-ui-sample$ docker run --name onsen-sample -p 3333:80 -d -t taka0225/onsen-ui-sample

Page 9: Onsen UIでアプリケーション作ってみた

作った感想• クラスの命名規則が苦手( CSSFW のみ)• モック作りたいなら CSSFW 部分だけ使うだけで十分• それっぽいアプリの見た目は 2 時間もあれば作れる• 国産 FW なのでドキュメントが日本語(重要)• AngularJS やってなくてもとっつきやすい• AngularJS やってるともっとやりやすい

Page 10: Onsen UIでアプリケーション作ってみた

ご静聴ありがとうございました。