开发者

Ruby on Rails for Javascript [duplicate]

This question already has answers here: Is there a JavaScript MVC (micro-)framework? [closed] (30 answers) Closed 9 years ago.

I have some experience in Ruby on Rails and I want to keep the MVC way to go in my client side Javascript project.

There is any Rai开发者_如何学运维ls-like framework for Javascript? It should have the following features:

  • MVC
  • Easy integration with REST web services
  • Javascript-driven templating system
  • Models and validations
  • Testing framework

A solid documentation is a must!


I discovered backbone.js today. It's worth a look. It appears to be a lightweight abstract MVC system and uses underscore.js and jQuery

As for client side testing this isn't included. There are many standalone unit testing libraries out there.

Just add in any client side testing library you want. With these 4 you really shouldn't need anything else.

There are more heavyweight alternatives like SproutCore or Cappuccino#

Also see a large thread here on the topic by people in the know

I think node.js is worthy a mention aswell in case you want to delegate some of your framework to the server but keep it in javascript. You'll have to look into some of the big libraries running on node though.


Try http://emberjs.com/. It's very ambitious Javascript framework with cool things like UI Bindings and Auto-updating templates. It plays well with jQuery ;)


Javascript MVC is pretty full-featured and has a lot of good testing tools included: http://javascriptmvc.com/

Check out this answer for more info: Is there a JavaScript MVC (micro-)framework?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜