Lab 10 - Persistence: Import/Export
Due: .
- Build on earlier experience with the browser’s
localStorage
andlocation
Web APIs to create a more featureful user experience. - Build on earlier experience with the browser’s
localStorage
using the FileReader to support export/import of app state.
Categories:
less than a minute
Part 1: Persistodon ๐ฆ
Learning Objectives
By the end of this lab, you should be able to:
- create (receive/parse) a “sharable link” such that another user of your app would get to a particular state of the app
- export from– and import to
localStorage
Prerequisites
- beginning localStorage (e.g. as exercised in Lab 7 - Card Builder)
- Familiarity with the browser’s
Location
interface (e.g. as outlined in prep 10)
Instructions
- Begin with the starting code in the Persistodon repo
- Complete the Persistodon app as specified in the page’s aside.
Part 2: Transportodon ๐ฆ
Learning Objectives
By the end of this lab, you should be able to:
- export from– and import to–
localStorage
Prerequisites
- beginning localStorage (e.g. as exercised in Lab 7 - Card Builder)
- Familiarity with the browser’s
FileReader API
Instructions
- Begin with the starting code provided by your instructor (e.g. from an assignment in your learning management system) or else in the Transportodon repo
- Complete the Transportodon app as specified in the page’s aside.