https://github.com/pouchdb/pouchdb-express-router
An Express submodule with a CouchDB style REST interface to PouchDB.
https://github.com/pouchdb/pouchdb-express-router
Last synced: 5 months ago
JSON representation
An Express submodule with a CouchDB style REST interface to PouchDB.
- Host: GitHub
- URL: https://github.com/pouchdb/pouchdb-express-router
- Owner: pouchdb
- Created: 2014-11-17T23:30:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T12:05:15.000Z (over 1 year ago)
- Last Synced: 2024-12-12T04:13:39.143Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 24
- Watchers: 8
- Forks: 16
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pouchdb-express-router
> An Express submodule with a CouchDB style REST interface to PouchDB.
## Introduction
**pouchdb-express-router** is an expressjs routing module that provides the
minimal API to allow PouchDB instance to replicate over HTTP, it is designed
to be mounted into expressjs web application to provide an endpoint for
PouchDB applications to sync with.The code is primarily forked from [https://github.com/pouchdb/express-pouchdb](https://github.com/pouchdb/express-pouchdb) to help users provide a minimal install.
## Example Usage
Here's a sample Express app, which we'll name `app.js`.
```javascript
var express = require('express');
var app = express();
var PouchDB = require('pouchdb');app.use('/db', require('pouchdb-express-router')(PouchDB));
app.listen(3000);
```