Vuex: Loading data using axios, deserializing JSON API relationships (Building a VueJS app Part 2)
UPDATE: stuck because you don't have a server? Check out this new video where we use MirageJS to mock a backend API: https://youtu.be/gGosCQzPCVg
In this tutorial we'll learn a huge amount about data handling with Vuex and VueJS -- how to load data from the server, how to handle relationships, and how to deal with JSON-API.
Specifically, we'll cover accessing VueX state (directly and through getters), dispatching VueX actions, using VueX mutations, setting up Axios calls, and deserializing the JSON API format into something more directly usable.
In our app, we'll implement a tag system to organize and navigate through our videos.
0:00 Start
1:59 Connecting to a REST server
10:24 Putting server data into Vuex
20:45 JSON-API
25:58 Data Relationships
45:19 The Tags page
Previous video in series: https://www.youtube.com/watch?v=vaCrzaeC-RE
Next video in series: https://www.youtube.com/watch?v=sKrBNGw94eQ
Playlist link: https://www.youtube.com/playlist?list=PLPwpWyfm6JADRf8x1Jc0Da8R71WJyt-Jn
Github link for today's code: https://github.com/jeffreybiles/vue-screencasts/commit/610c1a738b9e66284a9befd42a5602a5b223aad6
Github links for server at different states of capability:
- REST for videos: https://github.com/jeffreybiles/vue-screencasts-server/tree/117d5a666d876650dafee8613c499f270fef3eb4
- JSON API for videos: https://github.com/jeffreybiles/vue-screencasts-server/tree/0d1a380979caa6418143bb811ad1e983608c20c3
- JSON API for videos + tags: https://github.com/jeffreybiles/vue-screencasts-server/tree/259cb61df3cbd6c64948fffdc1e337c9ca6c68ee
*** Find me online! ***
Twitter: https://twitter.com/VueScreencasts
Website: https://www.vuescreencasts.com/
#VueX #JSONAPI #Axios #VueJS #Vue #Tutorial
Видео Vuex: Loading data using axios, deserializing JSON API relationships (Building a VueJS app Part 2) канала Vue Screencasts
In this tutorial we'll learn a huge amount about data handling with Vuex and VueJS -- how to load data from the server, how to handle relationships, and how to deal with JSON-API.
Specifically, we'll cover accessing VueX state (directly and through getters), dispatching VueX actions, using VueX mutations, setting up Axios calls, and deserializing the JSON API format into something more directly usable.
In our app, we'll implement a tag system to organize and navigate through our videos.
0:00 Start
1:59 Connecting to a REST server
10:24 Putting server data into Vuex
20:45 JSON-API
25:58 Data Relationships
45:19 The Tags page
Previous video in series: https://www.youtube.com/watch?v=vaCrzaeC-RE
Next video in series: https://www.youtube.com/watch?v=sKrBNGw94eQ
Playlist link: https://www.youtube.com/playlist?list=PLPwpWyfm6JADRf8x1Jc0Da8R71WJyt-Jn
Github link for today's code: https://github.com/jeffreybiles/vue-screencasts/commit/610c1a738b9e66284a9befd42a5602a5b223aad6
Github links for server at different states of capability:
- REST for videos: https://github.com/jeffreybiles/vue-screencasts-server/tree/117d5a666d876650dafee8613c499f270fef3eb4
- JSON API for videos: https://github.com/jeffreybiles/vue-screencasts-server/tree/0d1a380979caa6418143bb811ad1e983608c20c3
- JSON API for videos + tags: https://github.com/jeffreybiles/vue-screencasts-server/tree/259cb61df3cbd6c64948fffdc1e337c9ca6c68ee
*** Find me online! ***
Twitter: https://twitter.com/VueScreencasts
Website: https://www.vuescreencasts.com/
#VueX #JSONAPI #Axios #VueJS #Vue #Tutorial
Видео Vuex: Loading data using axios, deserializing JSON API relationships (Building a VueJS app Part 2) канала Vue Screencasts
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Validating Forms with Vuetify (Building a VueJS App Part 7)Vue.js Tutorial From Scratch - e09 - Making HTTP Requests with Axios, API ExampleVue Tutorial: Using Vuex with TypeScriptREST API concepts and examplesVuetify: Make a VueJS app look good, even if you're bad at design (Building a VueJS app Part 3)#4 - Fetch products from API | Vuex State, Actions, & Mutations | Vuex state management tutorialCode Innovation Series - Getting Started with Git & GitHub.Adding Geolocation and Google Maps to a Vue ApplicationNuxtJS data, asyncData, fetch and nuxtServerInit - when, how, why?Vue.js: The DocumentaryIntroduction to NuxtJS - Nested and dynamic pages, layouts, asyncData + axios, meta tags, and VueXVue JS 3: Composition API for State Management (Vuex Killer?)Building a VueJS app - Part 1 - Getting StartedAxios Crash Course | HTTP LibraryNuxt Universal SSR Deployment to Heroku — includes connecting to an API and debugging VuetifyVuex Explained Visually by Adam JahrWhy Angular, React & Vue shouldn't directly send Database QueriesWhy the Vue 3 Composition API?API Driven Application with Vue.js, JSON-Server and AxiosMastering Vue.js and Vuex