resourceful-riak
A Riak engine to the resourceful model framework from flatiron.
Acknowledgement
resourceful-riak builds heavily on the code from the couchdb engine included in resourceful.
Example
This is the example from resourceful, adapted to work with resourceful-riak.
var resourceful = ;;var Creature = resourceful;//// Now that the `Creature` prototype is defined// we can add custom logic to be available on all instances//Creatureprototype {thisbelly;};
Motivation
Resourceful is a simple yet powerful model framework from the infamous heroes at nodejitsu. Sadly it didn't support Riak (which we use extensively at admaze.ly), so we fixed that.
API Documentation
Today, resourceful-riak support all of the creation, deletion and modifyfing methods that resourceful supply (se README.md from resourceful for details). Going forward, we hope to implement both more advanced resourceful functionality (like filters and relationships) as well as riak-specific futures (like links and secondary indexes).
Installation
Installing npm (node package manager)
$ curl http://npmjs.org/install.sh | sh
Installing resourceful
$ [sudo] npm install resourceful
Installing resourceful-riak
$ [sudo] npm install resourceful-riak
Tests
All tests are written with [vows][0] and should be run with [npm][1]:
$ npm test