{"action":"created","issue":{"url":"https://api.github.com/repos/soroushjp/humble/issues/8","labels_url":"https://api.github.com/repos/soroushjp/humble/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/soroushjp/humble/issues/8/comments","events_url":"https://api.github.com/repos/soroushjp/humble/issues/8/events","html_url":"https://github.com/soroushjp/humble/issues/8","id":60807863,"number":8,"title":"TodoMVC project layout and alternative model approach","user":{"login":"cryptix","id":111202,"avatar_url":"https://avatars.githubusercontent.com/u/111202?v=3","gravatar_id":"","url":"https://api.github.com/users/cryptix","html_url":"https://github.com/cryptix","followers_url":"https://api.github.com/users/cryptix/followers","following_url":"https://api.github.com/users/cryptix/following{/other_user}","gists_url":"https://api.github.com/users/cryptix/gists{/gist_id}","starred_url":"https://api.github.com/users/cryptix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryptix/subscriptions","organizations_url":"https://api.github.com/users/cryptix/orgs","repos_url":"https://api.github.com/users/cryptix/repos","events_url":"https://api.github.com/users/cryptix/events{/privacy}","received_events_url":"https://api.github.com/users/cryptix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-12T11:56:35Z","updated_at":"2015-03-13T04:16:22Z","closed_at":null,"body":"Hey,\r\n\r\nI made a [fork](https://github.com/cryptix/exp/tree/master/humbleRpcTodo) of the TodoMVC example and consolidated it into single repository.\r\n\r\nHaving the code in two places felt weird (especially firing up a 2nd web server for the html/js/css). Maybe you should just outline the ability to speak to multiple REST backends with this approach but it felt unnecessary for an introduction example.\r\n\r\nHave you seen [this](https://github.com/shurcooL/play/commit/e7e89367c071462ed0d150663bba54a78c06deed) demo of using [net/rpc](https://golang.org/pkg/net/rpc) over websockets? I applied it to this example and I urge you to take a look at it - it deletes so much marshaling and parameter decoding code. My execution is a bit whacky (directly using `client.Call`, having the client sit in the `AppView`) but a proper implementation could use the same interface for the rpc client as well as the backend.\r\n\r\n\r\n\r\nps: Maybe refactor the example a bit with regards to error handling. All the `panic(err)`s tingle my gophersenses.\r\n\r\nDespite all that: Thanks for this really interesting project!"},"comment":{"url":"https://api.github.com/repos/soroushjp/humble/issues/comments/78790183","html_url":"https://github.com/soroushjp/humble/issues/8#issuecomment-78790183","issue_url":"https://api.github.com/repos/soroushjp/humble/issues/8","id":78790183,"user":{"login":"soroushjp","id":1213121,"avatar_url":"https://avatars.githubusercontent.com/u/1213121?v=3","gravatar_id":"","url":"https://api.github.com/users/soroushjp","html_url":"https://github.com/soroushjp","followers_url":"https://api.github.com/users/soroushjp/followers","following_url":"https://api.github.com/users/soroushjp/following{/other_user}","gists_url":"https://api.github.com/users/soroushjp/gists{/gist_id}","starred_url":"https://api.github.com/users/soroushjp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soroushjp/subscriptions","organizations_url":"https://api.github.com/users/soroushjp/orgs","repos_url":"https://api.github.com/users/soroushjp/repos","events_url":"https://api.github.com/users/soroushjp/events{/privacy}","received_events_url":"https://api.github.com/users/soroushjp/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T04:16:22Z","updated_at":"2015-03-13T04:16:22Z","body":"Thank you cryptix -- just writing quickly to let you know that I've been a little busy but that I fully intend to look through your issue in detail in the next 2 weeks. I'll be thinking about net/rpc implementation, and I think you're almost certainly right about the TodoMVC organization. More to come shortly!"}}