Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pouchdb-community/pouchdb-http
PouchDB as an HTTP-only package
https://github.com/pouchdb-community/pouchdb-http
Last synced: 18 days ago
JSON representation
PouchDB as an HTTP-only package
- Host: GitHub
- URL: https://github.com/pouchdb-community/pouchdb-http
- Owner: pouchdb-community
- License: apache-2.0
- Created: 2016-09-04T16:17:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-17T11:51:39.000Z (about 6 years ago)
- Last Synced: 2024-04-14T06:51:08.744Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pouchdb-http
======PouchDB as an HTTP-only package.
The `pouchdb-http` preset only contains the HTTP adapter, i.e. the adapter that
allows PouchDB to talk to CouchDB using the format `new PouchDB('http://127.0.0.1:5984/mydb')`.Use this preset if you only want to use PouchDB as an interface to CouchDB (or a Couch-compatible server).
### Usage
```bash
npm install pouchdb-http
``````js
var PouchDB = require('pouchdb-http');
var db = new PouchDB('http://127.0.0.1:5984/mydb');
```Note that this preset doesn't come with map/reduce (i.e. the `query()` API). If you want that, then you should do:
```js
var PouchDB = require('pouchdb-http')
.plugin(require('pouchdb-mapreduce'));
```For full API documentation and guides on PouchDB, see [PouchDB.com](http://pouchdb.com/). For details on PouchDB sub-packages, see the [Custom Builds documentation](http://pouchdb.com/custom.html).