{"action":"closed","issue":{"url":"https://api.github.com/repos/gr2m/milestones/issues/56","labels_url":"https://api.github.com/repos/gr2m/milestones/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/gr2m/milestones/issues/56/comments","events_url":"https://api.github.com/repos/gr2m/milestones/issues/56/events","html_url":"https://github.com/gr2m/milestones/issues/56","id":80254184,"number":56,"title":"PouchDB Plugin: pouchdb-hoodie-store","user":{"login":"gr2m","id":39992,"avatar_url":"https://avatars.githubusercontent.com/u/39992?v=3","gravatar_id":"","url":"https://api.github.com/users/gr2m","html_url":"https://github.com/gr2m","followers_url":"https://api.github.com/users/gr2m/followers","following_url":"https://api.github.com/users/gr2m/following{/other_user}","gists_url":"https://api.github.com/users/gr2m/gists{/gist_id}","starred_url":"https://api.github.com/users/gr2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr2m/subscriptions","organizations_url":"https://api.github.com/users/gr2m/orgs","repos_url":"https://api.github.com/users/gr2m/repos","events_url":"https://api.github.com/users/gr2m/events{/privacy}","received_events_url":"https://api.github.com/users/gr2m/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gr2m/milestones/labels/3%20medium","name":"3 medium","color":"db9876"}],"state":"closed","locked":false,"assignee":{"login":"HipsterBrown","id":3051193,"avatar_url":"https://avatars.githubusercontent.com/u/3051193?v=3","gravatar_id":"","url":"https://api.github.com/users/HipsterBrown","html_url":"https://github.com/HipsterBrown","followers_url":"https://api.github.com/users/HipsterBrown/followers","following_url":"https://api.github.com/users/HipsterBrown/following{/other_user}","gists_url":"https://api.github.com/users/HipsterBrown/gists{/gist_id}","starred_url":"https://api.github.com/users/HipsterBrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HipsterBrown/subscriptions","organizations_url":"https://api.github.com/users/HipsterBrown/orgs","repos_url":"https://api.github.com/users/HipsterBrown/repos","events_url":"https://api.github.com/users/HipsterBrown/events{/privacy}","received_events_url":"https://api.github.com/users/HipsterBrown/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/gr2m/milestones/milestones/4","html_url":"https://github.com/gr2m/milestones/milestones/04%20hoodie.store%20(PouchDB)","labels_url":"https://api.github.com/repos/gr2m/milestones/milestones/4/labels","id":726320,"number":4,"title":"04 hoodie.store (PouchDB)","description":"owner: gr2m\r\n\r\n---\r\n\r\nreplace self-cookied sync layer in hoodie.js with PouchDB, implement new hoodie.store API and hoodie-plugin-store core module","creator":{"login":"gr2m","id":39992,"avatar_url":"https://avatars.githubusercontent.com/u/39992?v=3","gravatar_id":"","url":"https://api.github.com/users/gr2m","html_url":"https://github.com/gr2m","followers_url":"https://api.github.com/users/gr2m/followers","following_url":"https://api.github.com/users/gr2m/following{/other_user}","gists_url":"https://api.github.com/users/gr2m/gists{/gist_id}","starred_url":"https://api.github.com/users/gr2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr2m/subscriptions","organizations_url":"https://api.github.com/users/gr2m/orgs","repos_url":"https://api.github.com/users/gr2m/repos","events_url":"https://api.github.com/users/gr2m/events{/privacy}","received_events_url":"https://api.github.com/users/gr2m/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":14,"state":"open","created_at":"2014-07-20T10:27:36Z","updated_at":"2015-08-28T19:05:12Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-05-24T19:52:50Z","updated_at":"2015-08-28T19:05:12Z","closed_at":"2015-08-28T19:05:12Z","body":"This task is ready to be worked on, (new) contributors very welcome <3\r\nhttps://github.com/hoodiehq/pouchdb-hoodie-store\r\n\r\n---\r\n\r\ndepends on PouchDB. Combines APIs of:\r\n\r\n- [pouchdb-hoodie-api](https://github.com/hoodiehq/pouchdb-hoodie-api) (with events #49)\r\n- [pouchdb-hoodie-sync](https://github.com/gr2m/pouchdb-hoodie-sync)\r\n- pouchdb-hoodie-scoped-api (#50)\r\n\r\nIs specifically meant to mirror a local database to a remote one.\r\n\r\n```js\r\nstore = new Store('mydb', { remote: 'http://localhost:5984/mydb' })\r\n\r\n// alternatively: \r\n// Store.defaults({remoteBaseUrl: 'http://localhost:5984' })\r\n// store = new Store('mydb')\r\n\r\nstore.add({}) // will persist object locally in \"mydb\"\r\nstore.sync() // will create database at http://localhost:5984/mydb\r\n```"}}