Skip to content

Bleuarff/vinisync

Repository files navigation

Vinisync

Simple cellar management. https://vinisync.fr.

Description

Vinisync is a simple cellar management. We want it to be the most easy-to-use cellar inventory system. It works completely fine when offline, all your data is on your device at all times. You can sync different devices, though.

Chrome and Firefox only. Not even tested on other browsers.

Run dev

Needs node.js >=14. Run nvm use first.

gulp

Deployment

./scripts/deploy.sh <env>

env being stg or prod

Sync reference

client sendDiff

payload has random id, diff as changes, ts (+ userid, type, devid)

server insertUpdate

ts is payload ts (or current time if not provided), uploadedDate is insertion time

server getUpdates

get updates uploaded after the requesting device last sync.
returns updates sorted by ts asc, + server time as lastSync date

client getUpdates

sends device last sync date. If pagination, last sync date is the value returned by server in the previous response.