Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bigbluehat/vue-pouchdb
Mix PouchDB into your Vue.js app with ease! vm.$db.get()
https://github.com/bigbluehat/vue-pouchdb
Last synced: 2 months ago
JSON representation
Mix PouchDB into your Vue.js app with ease! vm.$db.get()
- Host: GitHub
- URL: https://github.com/bigbluehat/vue-pouchdb
- Owner: BigBlueHat
- Created: 2016-03-12T21:11:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-08T20:50:57.000Z (almost 8 years ago)
- Last Synced: 2024-10-04T17:59:48.025Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Actually...
Someone else has more time than me. Checkout [vue-pouch](https://github.com/qurateinc/vue-pouch)!
---
# vue-pouchdb
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)
[![Patreon](https://img.shields.io/badge/donate-patreon-orange.svg?style=flat-square)](https://www.patreon.com/BigBlueHat)[Vue.js](http://vuejs.com/) plugin that adds [PouchDB](http://pouchdb.com/)
to your Vue.js apps.It also (currently) includes
[pouchdb-authentication](http://github.com/nolanlawson/pouchdb-authentication)
because you probably should use that if you're building browser apps. :smiley_cat:It's a tiny useful bit of code I extraced from [BlueInk](http://github.com/BigBlueHat/BlueInk).
## Usage
Assumes [browserify](http://browserify.org/):
```
Vue.use(require('vue-pouchdb'), {name: 'database-name'});
```The first option is the plugin--see
[Vue.use()](http://vuejs.org/guide/plugins.html#Using_a_Plugin) for more info.
The second option is the [options object for PouchDB](https://pouchdb.com/api.html#create_database).If you want to use this with [Apache CouchDB](http://couchdb.apache.org/) or [Cloudant](http://cloudant.com/), pass a database URL as the `name`. Easy peasy! :smiley_cat:
## License
MIT