node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »



REST framework for Node.js, Express and CouchBase

Arrest lets you write RESTful web services in minutes. It works with Express, implements simple CRUD semantics on CouchBase and the resulting web services are compatible with the $resource service of AngularJS.

How to Install

npm install arrest-couchbase

Super Simple Sample

The following sample application shows how to attach a simple REST API to and express application. In the sample, the path /api is linked to a data bucket on a Couchbase instance running on localhost:

var arrest = require('arrest-couchbase')
  , express = require('express')
  , app = express()
arrest.use(app, '/api', new arrest.RestCouchBaseAPI(['localhost:8091'], 'data', '', 'data'));

Now you can query your data collection like this:

curl "http://localhost:3000/api"