Fortune.js - RESTful, HATEOAS APIs made easy
fortunejs.com
fortunejs.com
Something they should put as a huge feature at the top (IMO) is that it uses Express & supports Connect middleware.
In the future, I might actually cut out Express from this framework, but still accept Connect middleware. The reason for that is because I don't want the user to be concerned about routing or having to manually set routes, so a thinner router might be in order.
Angular has way more to it so I'm probably going to leave it as is and continue hacking away at Fortune to make it a little more forgiving with the requests it handles.
I also exposed one more express method in /fortune.js:
Fortune.prototype.static = function() {
return express.static.apply(express, arguments);
};
Since Angular is all client side just creating a public folder was enough to serve up the required pages from the same app: app.use(app.static(__dirname + '/public'));Also, Fortune should work out the box with Ember Data and my JSON API adapter: https://github.com/daliwali/ember-json-api . Not to say that you should ditch Angular, but it will probably need quite a bit of modifications to its data layer to get it working with the JSON API spec.
I will be working on a full, non-trivial example of what an Ember.js + Fortune.js application can be in the coming week(s). There is a current implementation that's in production at my company, but its unfortunately closed-source.