A CouchDB/PouchDB Service for Feathers
Clone or download
Latest commit 3529c9d Dec 13, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example First release as a npm package Feb 5, 2018
src get returns undefined when no doc is found Feb 22, 2018
.eslintrc.json first commit Jul 13, 2017
.gitignore First release as a npm package Feb 5, 2018
.npmignore Feature: deep merge on patch Aug 9, 2017
LICENSE Initial commit Jul 11, 2017
README.md Update README.md Feb 6, 2018
package-lock.json First release as a npm package Feb 5, 2018
package.json Update package.json Dec 13, 2018

README.md

Synopsis

A CouchDB/PouchDB CRUD service for FeathersJS.

npm version alt downloads Build Status alt dependencies alt dev-dependencies Coverage Status code style: prettier

Installation

You can install this package as a npm dependency by running:

npm install @kapmug/feathers-nano

Getting started

Here is an example of creating a Feathers service using feathers-nano as the database adapter.

import feathers from 'feathers'
import rest from 'feathers-rest'
import service from '../lib'
import nano from 'nano'

const app = feathers().configure(rest())

const options = {
  name: 'tests',
  connection: nano({
    url: `http://localhost:5984`,
  }),
  database: 'test',
  paginate: false,
}

app.use('tests', service(options))
app.service('tests').get('18423385ef707d5fb46c61e7d70148a4').then(res => console.log(res)).catch(console.log)

Motivation

Although FeathersJS provides many official database adapters, currently there is no adapter for CouchDB/PouchDB. This package is a preliminary implementation of a non-official CouchDB/PouchDB adapter.