Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offline storage with refresh from server #30

Open
davetayls opened this issue Jul 2, 2014 · 2 comments
Open

offline storage with refresh from server #30

davetayls opened this issue Jul 2, 2014 · 2 comments

Comments

@davetayls
Copy link

hey, I'm trying to find a solution for an "offline-first" application where the data is stored first in the browser but can be populated from the server. will this work with your backbone-orm suite?

@kmalakoff
Copy link
Member

We'd love to support it, but currently, there isn't a local storage solution except in memory so it doesn't persist. Plus there would be the question of syncing when connection is re-established.

I saw someone speak at an event on hood.ie and was thinking it would be great to bring our awesome query syntax and consistent Browser/Node.js support to BackboneORM. Just haven't had the time to look deeper.

Doing this would need to solve the above two problems first. Do you have any technology suggestions to fill the gap? Or would you like to work on a proof of concept? Maybe writing a BackboneORM sync for hood.ie?

@davetayls
Copy link
Author

I have found today that it is possible to create what i explained above through use of Backbone.dualStorage which is good. I really like the concept of being able to use the same models/collections for an api so still looking at this project for that.

have you got any examples showing the full cycle because it's quite hard to work out where it all fits together from the docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants