Upload
midori-tajima
View
179
Download
0
Embed Size (px)
Citation preview
過去にリリースした子たち
• Dockerfile for personium.ioDockerfile of personium.io for Docker's automated build.
• gulp-personiumgulp plugin for personium.io client development.
• TwiPresso (src)TwiPresso brings you news shared from your twitter friends.This service corrects tweets from your twitter timeline which have URL link.
mobile server
monitor
リアルタイムスクリーン表示の仕組み
ソケット通信を利用して、写真のアップロードイベントを通知
queue
写真ID
notify event
emit
pop
画像アクセス(改)AWS
Client
Nodejsはシングルプロセス・シングルスレッド ノンブロッキングI/Oを採用したイベント駆動モデル ブロッキング処理をしてしまうとみんな待たされる
静的コンテンツの取得はNginxにまかせる
A Javascript library for building user interfaces
• Virtual DOM
• One-way reactive data flow
• Server side rendering
おすすめ(入門):http://qiita.com/advent-calendar/2014/reactjs
なんでReactにしたか ~ Flipboard の list view engine ~
60fps on the mobile web — Flipboard Engineeringby Michael Johnston ∙ February 10, 2015The DOM is too slow. It’s not just slow, it’s really slow.
You cannot build a 60fps scrolling list view with DOM.
Flipbord で使ってる Canvas layout engine を React
Components にしたよ
なんでReactにしたか ~ コンポーネント志向 ~
• HTML上のパーツを動きや見た目を含めてコンポーネントとして定義できる
• 同じパーツを使用したいときに複数の箇所に同じコードを書かなくてよい(再利用可能)
• さらにみんなでコンポーネントを共有できるhttp://react-components.com/ http://react.rocks/
browserify
クライアントサイドの開発で require(‘module’) メソッドをサポート。browserifyが依存関係をバンドルしてくれる。
• npmモジュールをそのまま使える
• クライアントサイドでもrequireスタイルで書ける
• 使うの簡単
SCM
CI service
development machine
開発環境
nodemon
• DBやNginxはdockerプロセスで起動→どこでも開発環境が再現可能
• CIにはプライベートでもフリーで利用できるwerckerを採用
保存したら勝手に再起動&リロード
js
js
nodemon
update
watch & build
watch & server restart & notify
reload
詳しい設定方法は こちら課題:watchify使えてないので毎回フルコンパイル
感想
• 披露宴に参加しているみんなが披露宴をつくってくれている感が楽しかった
• 友達視点ならではの写真・自分たちがいない間の写真も見れて楽しい
• みんなが自分のアプリ使ってくれてすごく嬉しい
• 動作不具合があった方々 すみませんでしたm(_ _)m