O'Reilly logo

Node.js 6.x Blueprints by Fernando Monteiro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing frontend components with Bower

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:

  1. Open your terminal/shell and type the following command:
    npm install bower -g
    

    The previous command installs Bower globally on your machine.

  2. 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:

Screenshot of the components folder

Note that the previous command ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required