Summary
The Express module makes it possible to structure your application efficiently by allowing (thanks to the MVC model it uses) you to separate the management of routes, the views displayed, and the management of data.
We have explained how to write the views of the application using the JADE syntax provided by default by Express. Other syntaxes, for example, the EJS syntax, are also available by downloading them via npm
.
We have also seen the importance of the app.js
file created by Express, and the use of HTTP requests such as GET, POST, PUT, and DELETE. We will see in Chapter 9, Integrating Vue.js with Node.js, the importance of these HTTP requests to build a MEVN application (short for MongoDB, Express, Vue.js, Node.js) that manipulates the MongoDB database.
Indeed, data management is often done using the MongoDB database, the use of which we will explore in the next chapter.