Commit graph

50 commits

Author SHA1 Message Date
Nicholas Kariniemi
36a0e3d419 Move sync code to shared 2014-09-23 19:51:31 +03:00
Nicholas Kariniemi
dc355eb6ec Separate state handle, sync algorithm 2014-09-23 19:49:08 +03:00
Nicholas Kariniemi
1b8339dec0 Mid-changes: organize state changes 2014-09-22 22:47:36 +03:00
Nicholas Kariniemi
fe5bd00427 Refactor - wip 2014-09-16 23:27:10 +03:00
Nicholas Kariniemi
5a66361746 Rename sync -> diff 2014-09-14 21:30:19 +03:00
Nicholas Kariniemi
4320401a4e Better - uses tx-listen 2014-08-30 17:06:48 +03:00
Nicholas Kariniemi
f087309c0f Possibly fully working differential sync 2014-08-30 15:40:17 +03:00
Nicholas Kariniemi
a572b9e1eb Reset state from history
- fails if server changes are made while client is disconnected
2014-08-30 11:47:09 +03:00
Nicholas Kariniemi
763e6f2fc8 Sync complete state on checksum failure 2014-08-30 08:11:45 +03:00
Nicholas Kariniemi
bd08ea5ec5 Factor out some client/server common state ops 2014-08-30 07:21:59 +03:00
Nicholas Kariniemi
b7b094b253 Refactor wip 2014-08-19 23:24:19 +03:00
Nicholas Kariniemi
4ac42b0cf3 Working hash checks a la hasch 2014-08-13 21:37:17 +03:00
Nicholas Kariniemi
a672155a92 State checks - wip 2014-08-10 22:53:42 +03:00
Nicholas Kariniemi
becfb42627 Sync state using diffs instead of events 2014-08-10 20:55:26 +03:00
Nicholas Kariniemi
5230dc9601 Patch diff onto state 2014-08-09 16:03:06 +03:00
Nicholas Kariniemi
d775f1dab7 Diff two states 2014-08-09 15:37:39 +03:00
Nicholas Kariniemi
d018bcf3cf Remove recipes 2014-08-09 00:07:59 +03:00
Nicholas Kariniemi
8ecc7e9ad4 Delete individual grubs 2014-08-08 23:56:49 +03:00
Nicholas Kariniemi
680ca9ab8a Clean up deps 2014-08-03 10:18:49 +03:00
Nicholas Kariniemi
e79051f991 Update monger connect-via-uri call for lib changes 2014-08-03 00:33:45 +03:00
Nicholas Kariniemi
a7ac7665df Rework tests slightly 2014-08-02 23:54:02 +03:00
Nicholas Kariniemi
7f45956503 Reorganize tests 2014-07-30 18:03:01 +03:00
Nicholas Kariniemi
80566eed03 Clean up fetching recipes from db 2014-07-03 19:02:39 +03:00
Nicholas Kariniemi
7bb5186e3d Complete/uncomplete grubs 2014-07-03 18:54:36 +03:00
Nicholas Kariniemi
24632d99ce Render grub list with om 2014-06-29 12:35:35 +03:00
Nicholas Kariniemi
dec1fdf8b1 Rework to use source maps 2014-06-25 22:52:35 +03:00
Nicholas Kariniemi
6f458591b5 Update deps, update mongo code to make it work w/ new version 2014-06-25 20:05:11 +03:00
Nicholas Kariniemi
73d965f8f7 Use root URL for WebSocket connection (because Heroku) 2014-01-12 17:40:33 +02:00
Nicholas Kariniemi
b454e782bf Connect db to MONGOHQ_URL if it exists 2014-01-12 17:40:33 +02:00
Nicholas Kariniemi
081a85379b Parse command line args better 2014-01-12 15:59:01 +02:00
Nicholas Kariniemi
d4753418ca Reconnect automatically when disconnected
- only send all server items when connecting initially
- on reconnect, send pending events (that couldn't be sent)
- rudimentary solution
2013-10-22 12:15:11 +03:00
Nicholas Kariniemi
307c6cfad5 Fix: add recipe :steps --> :grubs 2013-10-21 23:44:48 +03:00
Nicholas Kariniemi
48ccf9e447 Event to add grubs/recipes as list 2013-10-21 22:56:23 +03:00
Nicholas Kariniemi
9669f57fbb Remove disconnected clients 2013-10-09 21:57:50 +03:00
Nicholas Kariniemi
955e853e93 Add back sorting of grubs 2013-10-08 22:25:44 +03:00
Nicholas Kariniemi
81299b43dd Edit recipes + major refactoring 2013-10-08 21:39:58 +03:00
Nicholas Kariniemi
f76eba6829 Fetch jquery locally 2013-10-01 10:53:32 +03:00
Nicholas Kariniemi
6bc7582255 Refactor server to use new core.async goodness 2013-10-01 10:53:32 +03:00
Nicholas Kariniemi
d4fbae9464 Recipes can be added 2013-10-01 10:53:31 +03:00
Nicholas Kariniemi
f4eaf7cef9 Grubs can be edited by long-pressing 2013-09-01 13:39:35 +03:00
Nicholas Kariniemi
d754955694 Clear all button 2013-08-25 13:53:47 +03:00
Nicholas Kariniemi
26035a5174 Production server 2013-08-25 00:32:56 +03:00
Nicholas Kariniemi
71806ee7e3 Use dev db if not production 2013-08-24 18:13:26 +03:00
Nicholas Kariniemi
f19a0b022b Use grub.js if production arg is given 2013-08-20 19:16:23 +03:00
Nicholas Kariniemi
1f9108b96a Large refactoring
- State handler intermediates between view, server
2013-08-18 14:36:16 +03:00
Nicholas Kariniemi
707fb9f22d Minor database refactoring 2013-08-18 14:13:55 +03:00
Nicholas Kariniemi
6754e05001 Add log message for starting server 2013-08-18 11:32:53 +03:00
Nicholas Kariniemi
dbd6222251 Integration test for adding synced grubs 2013-08-18 11:22:08 +03:00
Nicholas Kariniemi
ad02da6c88 Switch from Midje to Speclj[s] 2013-08-17 17:29:30 +03:00
Nicholas Kariniemi
9943a58fd7 Put sources in src/clj[s], tests in test/clj[s] 2013-08-17 14:28:46 +03:00