Refactoring localstorage persistence to server using VueX and Axios (Building a VueJS App Part 11)

Published: 30 September 2019
on channel: Jeffrey Codes
2,940
46

When we tracked watched videos in part 4, we did it using localstorage because we didn't have any users on our server.

Now that we are tracking users, we can refactor our code to get the watch data from the server. This allows users to go between devices without losing data.

0:00 Start + preview of the rest of series
2:18 Loading video plays
12:42 Saving video plays
20:27 Review

The "Building a VueJS Screencasting App From Scratch" Playlist:    • Building a VueJS screencasting app fr...  

** Github Links **

Read playedVideos from the server: https://github.com/jeffreybiles/vue-s...
Vue.set: https://github.com/jeffreybiles/vue-s...
Marking videos as played: https://github.com/jeffreybiles/vue-s...
Loading video plays on login: https://github.com/jeffreybiles/vue-s...

Backend code: https://github.com/jeffreybiles/vue-s...

** Find me online! **

Twitter:   / vuescreencasts  
Website coming soon.

#VueX #Axios #Refactor #Persistence #VueJS #Tutorial