Skip to content

hardlifeofapo/baseview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

baseview

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.

usage

  baseview = require('baseview')('http://127.0.0.1:8092')

  ...

  baseview.view('design_doc', 'view_name', function(error, data) {
    console.log(error, data);
  });

example with socket.io

  io.sockets.on('connection', function (socket) {
    baseview.view('feed', 'images', function(error, data) {
      socket.emit('image_feed', data.rows);
    });
  });

contribute

everyone is welcome to contribute. patches, tests, bugfixes, new features

  1. create an issue on github so the community can comment on your idea
  2. fork baseview in github
  3. create a new branch git checkout -b my_branch
  4. create tests for the changes you made
  5. make sure you pass both existing and newly inserted tests
  6. commit your changes
  7. push to your branch git push origin my_branch
  8. create an pull request

meta

proudly presented by presive, Barcelona.

About

Minimal CouchBase view client in node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published