-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Couch Cushion is a Javascript/Node.js ODM modelled for Couchbase. Couch Cushion was created to be flexible and easy to use, cutting down on some of the repetitive tasks that developers have to deal with when working with the Couchbase SDK.
The Couch Cushion ODM itself doesn't have any large dependencies, and can just be installed with npm:
npm install --save couch-cushion
This is done so that the package can be included on the front-end with a minimal footprint using a service like browserify. The functionality to communicate with Couchbase and other services, like Elasticsearch, are provided through plugins and adapters which can be can be included separately.
Couchbase An adapter that provides services and functionality for communicating with Couchbase.
Couch Cushion was designed for and built with Node.js in mind, and is the main platform for it's use. It can easily be installed with npm install couch-cushion, then require('couch-cushion') to use it. Most, if not all, of the database communication should be done through the server, as the Couchbase Adapter relies on the Couchbase SDK, which would be pretty hefty to try and send to clients. ;)
If you just want object modelling, however, Couch Cushion itself should work in most modern browsers. Firefox, Chrome, Safari, Opera and IE9+ should all work and be supported. (If you come across a problem in any of these browsers please feel free to submit an issue.)