phoenix1.2のチャットの前半が動いた! 嬉しいサイト!
https://github.com/dddrb/phoenix-channel-example/blob/master/README.md
これもV1.2の感動サイト 嬉しい
http://tt-house.com/2013/09/node-js-websocket-interval.html
Node.jsを使ってWebSocketで定期的にサーバーからブラウザにプッシュする
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーhttps://qiita.com/eighty8/items/47243fbdad9b4dfdc301
=>json api serverr by phoenix1.2
:new, :edit not installed at json-api
:: as ReadAll by index()
curl -X GET "http://localhost:4000/api/todos"
:: as ReadOne by show()
curl -X GET "http://localhost:4000/api/todos/2"
:: as Create by create()
curl "http://localhost:4000/api/todos" -X POST -d "todo[description]='clean'" -d "todo[complete]=false"
:: as Update by update()
curl "http://localhost:4000/api/todos/1" -X PUT/PATCH -d "todo[description]='cleaning'" -d "todo[complete]=false"
:: as Delete by delete()
curl -X DELETE "http://localhost:4000/api/todos/1"
これでCRUD完成 Curl is great