baseview
is a minimalistic CouchBase client for node.js based on the minimalistic CouchDB driver nano.
CouchBase provides view data as JSON, which can be accessed and streamed with this client. To store and retrieve single documents/key-value pairs, the memcached-library is required.
baseview = require('baseview')('http://127.0.0.1:8092')
...
baseview.view('design_doc', 'view_name', function(error, data) {
console.log(error, data);
});
io.sockets.on('connection', function (socket) {
baseview.view('feed', 'images', function(error, data) {
socket.emit('image_feed', data.rows);
});
});
everyone is welcome to contribute. patches, tests, bugfixes, new features
- create an issue on github so the community can comment on your idea
- fork
baseview
in github - create a new branch
git checkout -b my_branch
- create tests for the changes you made
- make sure you pass both existing and newly inserted tests
- commit your changes
- push to your branch
git push origin my_branch
- create an pull request
proudly presented by presive, Barcelona.