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 history / save / progress feature (JS local storage) #251

Closed
reingart opened this issue Mar 23, 2023 · 2 comments
Closed

Offline history / save / progress feature (JS local storage) #251

reingart opened this issue Mar 23, 2023 · 2 comments

Comments

@reingart
Copy link
Member

Instead of making AJAX requests, we could store user code and progress directly in the browser's local storage.

This will allow students to work in the course offline or with bad internet connection.

For example, in some rural areas with limited connectivity or schools that don't have proper infrastructure to deploy a webserver, this will be ideal.

This also will allow to scale many users and support downtime of servers.

See #250 for the current AJAX calls being done to the REST API, we could hook there and do both (save to local storage and make remote request if network is available)

@sujith-rek
Copy link
Collaborator

@reingart in this issue we only need to save
progress of the activecode & codelens ?
so that when the user comes back, his progress will be restored i.e. all the code he wrote will be shown?

@NicolasSandoval
Copy link
Member

Closed this as completed in #281

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

3 participants