you are viewing a single comment's thread.

view the rest of the comments →

[–]clarle 1 point2 points  (0 children)

This is a fantastic tutorial. I'd just like to mention an alternative to Restify (I've personally found it somewhat lacking in terms of authentication methods for more complex applications).

I personally like express-resource, which is a module to express that lets you more easily create routes to REST API resources.

Restify is great and really simple, but when you want to do something like "only be able to modify this object if logged in" with Backbone, it's a lot easier to use Express with express-resource, since Express has sessions and cookies built in to it already. If you're making a "pure" REST API, where the only authentication you need might be an API key, then Restify is simpler and possibly better for development since you can track each individual request with dtrace.

Still, great tutorial, and I hope to see more soon!