Chapter 9: Integrating Vue.js with Node.js
In this chapter, we will learn how to integrate a Vue.js application into a Node.js server, using Express to structure the server code (according to the MVC model) and MongoDB to store the information.
For this, we will use the example of the list management application built in Chapter 5, Managing a List with Vue.js. But here, the server used will be a Node.js server, and the list items will be stored in the MongoDB database. This will allow them to be redisplayed later, if necessary.
In the end, we will obtain a client-server application entirely made in JavaScript (both on the client side and on the server side).
Here are the topics covered in this chapter:
- Displaying application screens
- Building the app with Express
- MongoDB database structure
- Installing the Axios library
- Inserting a new element in the list
- Displaying list elements
- Modifying an element in the list
- Removing an element from the...