最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Node.js Rest Framework - Stack Overflow

programmeradmin0浏览0评论

I plan to write a rather large-scale web application using JavaScript. I believe I will be developing the webapp using CanJS to organize my client-side pieces.

I am strongly considering using Node.js for my server-side component, but I was wondering what the best way to set up Node to accept and handle REST requests. I did some Googling and came across something called Express. Any comments on this?

Any help/suggestions would be greatly appreciated.

I plan to write a rather large-scale web application using JavaScript. I believe I will be developing the webapp using CanJS to organize my client-side pieces.

I am strongly considering using Node.js for my server-side component, but I was wondering what the best way to set up Node to accept and handle REST requests. I did some Googling and came across something called Express. Any comments on this?

Any help/suggestions would be greatly appreciated.

Share Improve this question edited Apr 26, 2012 at 18:28 abraham 47.8k10 gold badges106 silver badges158 bronze badges asked Apr 26, 2012 at 14:33 thecountofzerothecountofzero 4131 gold badge7 silver badges13 bronze badges 0
Add a comment  | 

4 Answers 4

Reset to default 15

restify is a node.js module built specifically to enable you to build correct REST web services.

http://mcavage.github.com/node-restify/

Express is more directed towards full web application (rendering HTML, etc). Restify is just for web services.

Besides, the guy who created Restify works at Joyent, the company where Ryan Dahl developped Node.js (which is kind of guarantee quality).

For REST request handling, express-resource is a more focused solution than railwayjs that's also built on top of expressjs.

You can try http://railwayjs.com/ it is build on top of http://expressjs.com/

Express is nice and fast :) railway has similar stack to ruby on rails.

http://expressjs.com is the de factor standard, does Sinatra-like routing. If you want real easy automatic generation of resources (sort of Rails-style), try one of those libraries above.

If you want it real simple on top of express, try http://github.com/deitch/booster

Disclosure: I just released Booster this week.

发布评论

评论列表(0)

  1. 暂无评论