In this recipe, you will learn how to install Bootstrap and start your first project.
You can download the required files from http://getbootstrap.com/getting-started/#download. Choose the source version at this page, which includes the Less source files, too.
For this recipe, you should have Node.js and Grunt installed on your system. You can read how to install Node.js and the Node.js Package Manager in the Installing Node and Grunt recipe in Chapter 11, Compiling Less Real Time for Development Using Grunt.
You need to perform the following steps:
Download the ZIP archive that contains the Bootstrap source files and unzip this file into your working directory. Alternatively, run the following command in your console:
npm install bootstrap
Then, run this command in your console:
npm install
Now, you can compile Bootstrap by running this command:
grunt dist
The compiled CSS code can be used in your HTML by adding the following...