0.1.0 • Published 8 years ago

storage-sync v0.1.0

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
8 years ago

kinto-chrome

Build Status

Prototype project to build a chrome.storage.sync compatible wrapper around Kinto.js.

To see the demo, run:

npm install
npm run dist
cd demo ; python -m SimpleHTTPServer

and then visit http://localhost:8000/ and see the console.

To make it sync to a Kinto server, configure as follows:

chrome.storage.sync.config = {
  type: "kinto",
  interval: 60000, // milliseconds
  remote: "http://localhost:8080/v1",
  headers: {Authorization: "Basic " + btoa("user:pass")}
};

To run the tests, run:

npm install
npm run test