In the previous chapters, we used vanilla JavaScript to manage the UI. Truth be told, that code was highly fragile; bugs are happy to slip in as our cool startup evolves. Of course, we don’t want that to happen.
In this chapter, you will learn how to integrate JavaScript frameworks seamlessly into our Rails app by using Webpacker. For those who are wondering, we will be using Vue.js for the task.
You will also learn how to build an API controller and how to serialize our data. Finally, you will learn how to run some code in the background using Active Job.
Enter Vue.js and Webpacker
It is difficult to ...