Skip to content

A Feathers service adapter for CouchDB using Apache CouchDB Nano driver.

License

Notifications You must be signed in to change notification settings

pdxbmw/feathers-couchdb-nano

Repository files navigation

feathers-couchdb-nano

Build Status Code Climate Test Coverage Dependency Status Download Status

Feathers CouchDB adapter service using Apache CouchDB Nano.

Installation

npm install feathers-couchdb-nano --save

Documentation

Please refer to the feathers-couchdb-nano documentation for more details.

Complete Example

Here's an example of a Feathers server that uses feathers-couchdb-nano.

const feathers = require('feathers');
const rest = require('feathers-rest');
const hooks = require('feathers-hooks');
const bodyParser = require('body-parser');
const errorHandler = require('feathers-errors/handler');
const plugin = require('feathers-couchdb-nano');

// Initialize the application
const app = feathers()
  .configure(rest())
  .configure(hooks())
  // Needed for parsing bodies (login)
  .use(bodyParser.json())
  .use(bodyParser.urlencoded({ extended: true }))
  // Initialize your feathers plugin
  .use('/plugin', plugin())
  .use(errorHandler());

app.listen(3030);

console.log('Feathers app started on 127.0.0.1:3030');

License

Copyright (c) 2016

Licensed under the MIT license.

About

A Feathers service adapter for CouchDB using Apache CouchDB Nano driver.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published