5 ms·
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 R
by nightlifelover 15y ago
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..
- nevinera 15y agoExpress is fairly rails-like (for node.js).
- telemachos 15y agoMaybe 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]. [1] http://expressjs.com/guide.html#routing http://expressjs.com/guide.html#routing [2] http://documentcloud.github.com/backbone/ http://documentcloud.github.com/backbone/
- nevinera 15y agoThat would definitely be a fairer comparison, but he was asking for 'a framework like rails'; Express is the closest.
- CWIZO 15y agoHave you tried node.js?
- te_chris 15y agoNode 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.
- kapso 15y agoExpress/node.js is the closest. LearnBoost runs on it, if I am not mistaken.