http://qiita.com/ryotakodaira/items/e41c3a60348a9e1c7616
http://qiita.com/ryotakodaira/items/b234d1d51ae6b1110e8b
を参考に両方使えるようにしたコード
git clone https://github.com/applideveloper/FirebaseChatSample.git
cd FirebaseChatSample
open https://www.firebase.com/
アカウント作成
APP NAMEとAPP URLを作成
APP URLをコピーしてchat.jsとViewController.swiftを開いて、コピーしたAPP URLに変更する
open chat.js
open FirebaseChatSample/ViewController.swift
python -m SimpleHTTPServer
open -a Safari.app http://localhost:8000/
open -a Safari.app http://localhost:8000/
open FirebaseChatSample.xcworkspace
Command+R