Re:Expose any Ruby object over the web. An interesting littl...
by kingkilr on Tuesday November 16, 2010 @11:19AM
(#1910536)
A Python version for the kids at home: https://gist.github.com/702001
[ Parent
| on HN ]
Re:Expose any Ruby object over the web. An interesting littl...
by riklomas on Tuesday November 16, 2010 @12:36PM
(#1910833)
And a node.js version too: https://gist.github.com/700995
Re:Expose any Ruby object over the web. An interesting littl...
by devmon on Tuesday November 16, 2010 @04:44PM
(#1911846)
If you want to do this in node you should use something like http://github.com/marak/webservice.js instead.
It's the same principle but with more features, more development, and test coverage.
Re:Expose any Ruby object over the web. An interesting littl...
by wwortiz on Tuesday November 16, 2010 @01:58PM
(#1911137)
I don't know much about python and webapps but what would you serve this with? I'm just curious as I don't see the equivalent serving in this as the node.js and ruby snippets.
Re:Expose any Ruby object over the web. An interesting littl...
by Ixiaus on Tuesday November 16, 2010 @02:04PM
(#1911166)
A WSGI server (like paste, tornado, etc...) - you just wrap it in an app() function or object. It's very similar to Ruby's rack...
Re:Expose any Ruby object over the web. An interesting littl...
by kingkilr on Tuesday November 16, 2010 @02:19PM
(#1911224)
This can be run from the commandline with:
gunicorn webapp
For example (if you have gunicorn installed).
Re:Expose any Ruby object over the web. An interesting littl...
by draegtun on Wednesday November 17, 2010 @01:20PM
(#1915109)
And here are Perl (twice!) and Io versions for their dads :)
* https://gist.github.com/703620 - Perl using Plack
* https://gist.github.com/703651 - Perl using Continuity
* https://gist.github.com/703431 - Io using no external modules!
The Perl/Continuity is multiuser out of the box.
Re:Expose any Ruby object over the web. An interesting littl...
by ataylor284 on Tuesday November 16, 2010 @02:35PM
(#1911280)
Here's a groovy version: https://gist.github.com/702337