a lightweight way to create JSONAPI-compatible api's for nodejs
$ npm install flowee
$ cp node_modules/flowee/test/model.js .
Create server.js
:
var flowee = require('flowee')
var app = flowee.init({ model: require('./model.js'), store: true });
flowee.start( function(server) {
return server.listen(1337);
});
( See model.js here )
$ node server.js
Voila! Now you have a server running with automatically mapped database entities (incl. many to many relations OHMY).
Flowee promotes configuration over convention, click here to see the fullscreen architecture
Built on the shoulders of fortunejs, which represents:
Oh..and:
flowee-doc: automatic generating api documentation
flowee-auth: passport authentication
flowee-admin: automatic admin interface (TODO)
Take a look at loopback, meteor, cleverstack. Now imagine lightweight. Flowee likes to focus on: