All Projects → sadick254 → vuepouch

sadick254 / vuepouch

Licence: other
A tiny library to enable you work with PouchDB in a Vuejs app. It syncs with remote CouchDB too :-)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vuepouch

offPIM
Decentralized, Offline-first, Personal Information Manager (PIM) using PouchDB/CouchDB. Includes task-, note-, and contact-management, as well as journaling.
Stars: ✭ 63 (+6.78%)
Mutual labels:  sync, pouchdb
client-side-databases
An implementation of the exact same app in Firestore, AWS Datastore, PouchDB, RxDB and WatermelonDB
Stars: ✭ 787 (+1233.9%)
Mutual labels:  sync, pouchdb
React Native Storage
local storage wrapper for both react-native and browser. Support size controlling, auto expiring, remote data auto syncing and getting batch data in one query.
Stars: ✭ 2,822 (+4683.05%)
Mutual labels:  sync
template-sync-action
🔄 Github action to sync repository with a template repository
Stars: ✭ 12 (-79.66%)
Mutual labels:  sync
CryptoSync
Cross-platform end-to-end encryption cloud sync client ☁️ 🔒
Stars: ✭ 38 (-35.59%)
Mutual labels:  sync
shopping-list-vuejs-pouchdb
Shopping List is an Offline First demo Progressive Web App built using Vue.js and PouchDB.
Stars: ✭ 81 (+37.29%)
Mutual labels:  pouchdb
ezcontentstaging
eZPublish Legacy extension allowing content synchronization between different installations
Stars: ✭ 17 (-71.19%)
Mutual labels:  sync
Plex Sync
🎬 Command line utility for synchronizing Plex Media Server watched / seen status between multiple servers
Stars: ✭ 239 (+305.08%)
Mutual labels:  sync
trylock
TryLock for Go
Stars: ✭ 65 (+10.17%)
Mutual labels:  sync
powerplant
Optimize and assist planning your garden
Stars: ✭ 75 (+27.12%)
Mutual labels:  pouchdb
kanban-board-app
Kanban style task management board app
Stars: ✭ 118 (+100%)
Mutual labels:  pouchdb
sync-pkg
Minimalist CLI to sync only basic properties from package.json to bower.json
Stars: ✭ 15 (-74.58%)
Mutual labels:  sync
ChronoChat
A simple but interesting demo to visualize how ChronoSync library works
Stars: ✭ 16 (-72.88%)
Mutual labels:  sync
nadya
subscription management done right
Stars: ✭ 14 (-76.27%)
Mutual labels:  pouchdb
bookmark
chrome插件。"Bookmark" 帮助用户处理Chrome书签中"其他书签",解决书签过多难以保存,查阅不变和管理不变的问题。有存储"临时"书签,分类保存书签,快捷键,自定义设置,快捷查看书签,高效管理书签等功能。
Stars: ✭ 34 (-42.37%)
Mutual labels:  sync
React Scroll Sync
Synced scroll position across multiple scrollable elements
Stars: ✭ 252 (+327.12%)
Mutual labels:  sync
Notion-GCal-Sync
A Python script to automate the syncing of tasks between Google Calendar and the all-in-one productivity workspace, Notion. It utilizes API and is customizable for your own needs. Free to use.
Stars: ✭ 120 (+103.39%)
Mutual labels:  sync
sicksync
Don’t accept the available as the preferable. Go the extra mile with extra speed.
Stars: ✭ 67 (+13.56%)
Mutual labels:  sync
CSV
A simple CSV file parser and serializer
Stars: ✭ 31 (-47.46%)
Mutual labels:  sync
netbox-sync
Sync objects from VMware or redfish sources to NetBox
Stars: ✭ 172 (+191.53%)
Mutual labels:  sync

Vuepouch

A tiny library to enable you work with PouchDB in a Vuejs app. It syncs with remote CouchDB too :-)

Installation

Installing Vuepouch is as easy as including it in your html script tag. Being that it is a vuejs mixin it has a dependancy on vuejs. So dont forget to include that.

<script src="vue.js"></script>
<script src="vuepouch.js"></script>

Usage

Vuepouch by default gets auto installed when you include it in your html. You dont have to to Vue.use(vuepouch).

var app = new Vue({
  el: "#app",
  pouchdb: {
    uber: {
      localDB: "uber",
      remoteURL: "http://127.0.0.1:5984/uber"
    }
  },
  computed: {
    drivers () {
      return this.uber.drivers
    },
    passengers () {
      return this.uber.passengers
    }
  }
})

Adding data

...
methods: {
  addDriver () {
    this.$pouchdbRefs.uber.put('drivers',/*your data*/)
  },
  addPassenger () {
    this.$pouchdbRefs.uber.put('passengers', /*your data*/)
  } 
}

Deleting data

this.$pouchdbRefs.uber.remove(/*your data*/)

Updating data

this.$pouchdbRefs.uber.update(/*your data*/)

Displaying data in your html

<div id="app">
  <ul>
    <li v-for="driver in drivers">{{driver.name}}</li>
  </ul>
</div>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].