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

Integrate Offline support #73

Closed
addyosmani opened this issue Aug 11, 2012 · 9 comments
Closed

Integrate Offline support #73

addyosmani opened this issue Aug 11, 2012 · 9 comments

Comments

@addyosmani
Copy link
Member

I'd like to integrate first class support for offline into Aura, something similar to:

https://github.com/Ask11/backbone.offline

At present, whilst offline isn't strictly a part of the originally planned architecture I strongly feel that there are advantages to giving developers the ability to use this out of the box.

To summarize: the way this works is that when a connection is no longer available we start syncing using local datastores (e.g localStorage), re-syncing with a server when a connection comes back.

@addyosmani
Copy link
Member Author

There is also https://github.com/lucian1900/Backbone.dualStorage, which is of interest.

@addyosmani
Copy link
Member Author

@dustinboston what do you think of the idea?

more info on offline in general: http://diveintohtml5.info/offline.html

@dustinboston
Copy link
Contributor

@addyosmani - Unless there is a reason for Aura itself to be managing connectivity I think it's up to the widget developers. It might be fun to demonstrate it as an extension though.

@addyosmani
Copy link
Member Author

@dustinboston I was thinking the same. As this is Backbone specific we could easily get it working in place of the default localStorage adapter. The only change to the demo would be that it would require a backend of some sort (which can be very simple, even something like an option from https://github.com/addyosmani/backbone-boilerplates/) and that would be it.

@dustinboston
Copy link
Contributor

@addyosmani Great idea - I would love to see how you use MongoDB. Would this make it harder for folks to simply download the demo and run it locally? I think that's a great benefit of the demo right now.

@addyosmani
Copy link
Member Author

@dustinboston I think if we introduced one more set of dependencies, we would either have to get people setup using an install script or provide two demos - one with the backend and one without. Do you think we should provide 2 examples or will one suffice?

@dustinboston
Copy link
Contributor

@addyosmani Honestly I think the demo is the most valuable when once can just download and start playing immediately. I think we should punt on this one or leave it out.

@addyosmani
Copy link
Member Author

@dustinboston Happy to leave this out for now. If we end up making the demo app more complex, we may consider looking at this again. Definitely more we can improve before thinking about these types of concerns :)

@dustinboston
Copy link
Contributor

@addyosmani marking this as closed for now.

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

No branches or pull requests

2 participants