{"action":"opened","issue":{"url":"https://api.github.com/repos/swarmsim/swarm/issues/523","labels_url":"https://api.github.com/repos/swarmsim/swarm/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/swarmsim/swarm/issues/523/comments","events_url":"https://api.github.com/repos/swarmsim/swarm/issues/523/events","html_url":"https://github.com/swarmsim/swarm/issues/523","id":66123725,"number":523,"title":"replace kongregate rails server with node.js","user":{"login":"erosson","id":238846,"avatar_url":"https://avatars.githubusercontent.com/u/238846?v=3","gravatar_id":"","url":"https://api.github.com/users/erosson","html_url":"https://github.com/erosson","followers_url":"https://api.github.com/users/erosson/followers","following_url":"https://api.github.com/users/erosson/following{/other_user}","gists_url":"https://api.github.com/users/erosson/gists{/gist_id}","starred_url":"https://api.github.com/users/erosson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erosson/subscriptions","organizations_url":"https://api.github.com/users/erosson/orgs","repos_url":"https://api.github.com/users/erosson/repos","events_url":"https://api.github.com/users/erosson/events{/privacy}","received_events_url":"https://api.github.com/users/erosson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/swarmsim/swarm/milestones/9","html_url":"https://github.com/swarmsim/swarm/milestones/p1","labels_url":"https://api.github.com/repos/swarmsim/swarm/milestones/9/labels","id":879439,"number":9,"title":"p1","description":"","creator":{"login":"erosson","id":238846,"avatar_url":"https://avatars.githubusercontent.com/u/238846?v=3","gravatar_id":"","url":"https://api.github.com/users/erosson","html_url":"https://github.com/erosson","followers_url":"https://api.github.com/users/erosson/followers","following_url":"https://api.github.com/users/erosson/following{/other_user}","gists_url":"https://api.github.com/users/erosson/gists{/gist_id}","starred_url":"https://api.github.com/users/erosson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erosson/subscriptions","organizations_url":"https://api.github.com/users/erosson/orgs","repos_url":"https://api.github.com/users/erosson/repos","events_url":"https://api.github.com/users/erosson/events{/privacy}","received_events_url":"https://api.github.com/users/erosson/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":57,"state":"open","created_at":"2014-11-25T07:04:33Z","updated_at":"2015-04-03T10:40:44Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-04-03T10:40:44Z","updated_at":"2015-04-03T10:40:44Z","closed_at":null,"body":"the swarmsim server's going to be used a lot more pretty soon, for more than kongregate. I'm more familiar with rails than with node, and rails is more popular; but only node can share code with the client, which is really important for some stuff I'm planning soonish.\r\n\r\n(okay okay, there's probably some convoluted way to run js in ruby somehow, or we could run a second server for the parts of my plot that require shared client/server code... but the rails server's so small right now it's worth just converting everything and learning node as we go.)\r\n\r\nfinished a node server tonight that matches the rails server's api - the js test suite from rails passes for both. push it to git (in the same repo as the client, or a new repo?), deploy it to prod, tell the client to use it in prod (change the `swarm-server.swarmsim.com` cname, probably), then kill the rails server.\r\n\r\nmight be nice to make the js test suite into proper mocha tests that we can run from travis, too - it does touch s3 though, so maybe not."}}