Re:Rails 3.1 shipping with CoffeeScript
by nightlifelover on Wednesday April 13, 2011 @04:18PM
(#2443987)
Just wondering is there a framework like Rails written in JS? Using JavaScript and V8 on the server side makes a lot of sense since V8 is much faster then the Ruby interpreter..
[ Parent
| on HN ]
Express is fairly rails-like (for node.js).
Re:Rails 3.1 shipping with CoffeeScript
by telemachos on Wednesday April 13, 2011 @06:24PM
(#2444503)
Maybe a fairer comparison is Sinatra? That is, Express is a lot slimmer than Rails and works via a DSL based around the HTTP verbs[1].
Another JS framework to look at is Backbone[2].
That would definitely be a fairer comparison, but he was asking for 'a framework like rails'; Express is the closest.
Express/node.js is the closest. LearnBoost runs on it, if I am not mistaken.
Have you tried node.js?
Node isn't really a framework. It's a server-side runtime environment for javascript. You could totally do something cool with it, Express js providing controllers, some sort of orm to your favourite DB providing Models and a template engine for views. Or, develop a backbone.js app for your frontend and make it talk to the api exposed by your controllers....no easy full stack like rails...yet...but it'll come, however I can't imagine it'll look too much like rails.