$ npm install -g bower
$ cd ~/vagrant-lamp/sites/codeup.dev
$ mkdir bower_test
$ touch .bowerrc
$ bower init
I tend to control where I want my dependencies to install on. So I do this by entering the following in the .bowerrc
file.
{
"directory": "assets/vendor/"
}
Before installing a depency we can search for one to see if we want to install it.
$ bower search bootstrap
As you can see there are a lot of packages that we have available that are associated with bootstrap. Bower has packages for just about any dependecy. For dependencies that don't have packages we are able to install those as well via a github url. We can specify the search a little more.
$ bower search bootstrap-sass
To save the package we need we can do the following:
$ bower install bootstrap-sass-official --save
Next install bootstrap html template