Summary

In this chapter, you learned how to use the real-time Firebase database with the Vue application. You learned how to use Vuexfire and its methods to correctly bind our Vuex store state to the database reference. We were not only able to read and render the data from the database but we were also able to update it. So, in this chapter, we saw Vuex, Firebase, and Vuexfire in action. I guess we should be proud of ourselves.

However, let's not forget that we have used a hardcoded user ID in order to get the user's data. Also, we had to expose our database to the world by changing the security rules, which doesn't seem right either. It seems that it's time to enable the authentication mechanism!

And we will do it in the next chapter! In the next ...

Get Vue.js 2 and Bootstrap 4 Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.