Full-Stack Web Development with Vue.js and Node

(singke) #1
Building the Real Application Chapter 5

Now, with this, when we submit a movie, we should be able to see a success message
before redirecting to the homepage:


There are also several other packages for the message alerting, such as
vue-flash, vuex-flash, and sweet-alert.

Loading dynamic content on the homepage


Currently, our homepage has all the static movies in the content. Let's fill the data with the


data that we have added to the movies in our database. For that, the first thing to do is to
add a few movies to the database, which we can do via


the http://localhost:8080/movies/add endpoint from the UI.

Free download pdf