Full-Stack Web Development with Vue.js and Node

(singke) #1
Building an Express Application Chapter 2

views: This folder contains all of our view files that are going to be rendered in
the browser. It has the main layout file (which contains the basic HTML
templating for a view file), an index.jade file (which extends the layout file and
only has the content that is changeable or dynamic), and an error.jade file
(which displays when we need to display some sort of error messaging to our
frontend).
routes: This folder has a whole list of all the routes that we will be building
access different pages of the application. We will discuss more on this in further
sections.
bin: This folder contains the executable files for Node.js.

So, these are the basic things that we need to know. Now, use your favorite text editor to


work on the application and let's get started. Now, if we look at package.json, there are


certain packages that we did not install but that are listed in the dependencies:

Free download pdf