paldepind / synceddb

Makes it easy to write offline-first applications with realtime syncing and server side persistence.
MIT License
411 stars 34 forks source link

Make the todo example works out of the box #16

Closed pmaoui closed 8 years ago

pmaoui commented 8 years ago

The todo example needs some files built with webpack. I've slightly change the main package.json to permit a global npm run build.

pmaoui commented 8 years ago

I have also added the possibility to add a custom HTTP server for the websocket (for people using Express).

piglovesyou commented 8 years ago

Thank you. Indeed it needs the way to build all sub projects at once.

Here is my suggestions.

Better idea? If no, still OK, I'll think about it after merging.

Besides that, adding server option to the document would be appreciated.

pmaoui commented 8 years ago

I fixed the unnecessary dependency to webpack in the main package.json. I agree with the prepublish hook, it's a good idea. Seems okay this way ? And of course I've also updated the doc.

pmaoui commented 8 years ago

Sorry I forgot to update the todo example README. Should be okay.

piglovesyou commented 8 years ago

It is great. Thanks again. I think I'll create another example using express based on your option.

pmaoui commented 8 years ago

Great idea ! Thank you for your reactivity 👍