Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js Rest Framework

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.

like image 948
thecountofzero Avatar asked Apr 26 '12 14:04

thecountofzero


2 Answers

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).

like image 61
Florian Margaine Avatar answered Sep 20 '22 11:09

Florian Margaine


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

like image 35
JohnnyHK Avatar answered Sep 17 '22 11:09

JohnnyHK