As we can see in the previous examples, we use a CDN to serve the CSS file and some JavaScript files for the example application. In this step, we will introduce a widely-used tool for dependencies management, known as Bower, for dealing with frontend frameworks such as the Twitter Bootstrap:
Open your terminal/shell and type the following command:
npm install bower -g
The previous command installs Bower globally on your machine.
Inside the root project folder, type the following command:
bower install bootstrap#v4.0.0-alpha
The previous command will install Bootstrap inside the public/components folder, as we can see in the following image:
Note that the previous command adds the jQuery too, because Bootstrap depends on the jQuery library. Let's add the links to header.ejs and footer.ejs:
Open views/header.ejs and add the following code:
<link rel="stylesheet" href="components/bootstrap/dist/css ...