Getting all the code
Since this repository depends on another repository, namely lightopenid, you will need to take some additional steps to get the submodules:
git clone git://github.com/jelmervdl/wolk.git git submodule init git submodule update
conf/db.php and provide your mysql credentials and a database name. Use
wolk.sql to create the tables. Or as explained in command-line terms:
$ mysql mysql> CREATE DATABASE wolk; mysql> connect wolk mysql> source path/to/wolk.sql mysql> CREATE USER 'wolk'@'localhost' IDENTIFIED BY 'wolk'; mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON wolk.* TO 'wolk'@'localhost';
Supply key-value-modified pairs as JSON in the request's body.
In addition to saving data in the wolk this request will return the same data as a GET request would have. This is by design so syncing can be done with a single request by pushing all the changes since the last sync and supplying the
since parameter to receive all the changes you missed out on.
You will have to do the bookkeeping yourself (i.e. keep track of whether your version of a key-value-pair is newer than the received version) For this pushing part this is done by the database for you. So when you send old data, it will never overwrite newer data already in the wolk.