Skip to content

Plugin for Vue.js to provide access to Hoodie client

License

Notifications You must be signed in to change notification settings

SergeyRyzhov/vue-hoodie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-hoodie

Plugin for Vue.js to provide access to Hoodie client

Install

npm install https://github.com/SergeyRyzhov/vue-hoodie.git --save

Configure

// imports
import Vue from 'vue'
import VueHoodie from 'vue-hoodie'
Vue.use(VueHoodie);

// setup Hoodie (please check official documentation)
import Hoodie from '@hoodie/client'
import PouchDB from 'pouchdb';

const hoodie = new Hoodie({
  PouchDB,
  url: 'http://localhost:8080'
});

// use in root app
new Vue({
  ...
  hoodie,
  ...
}).$mount('#app')

Usage

Now you can access Hoodie client in any component

this.$hoodie

About

Plugin for Vue.js to provide access to Hoodie client

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published