Bower will take care of all of our frontend dependencies. Of course, it is simpler to just add the CSS and image files directly in the public
folder, but we need a scalable application, right? There is nothing better than using Bower to manage frontend dependencies. To install the dependencies, we will perform the following steps:
Go to the
root
folder and create a new file namedbower.json
.Create another file named
.bowerrc
with the following code:{ "directory": "public/bower_components" }
The behavior of
bower.json
is very similar topackage.json
and both use theinit
command to create the package file. We skip this step, and add our dependencies directly into the file.Place the following code in the
bower.json
file:{ "name": "conference-api", "version": "0.0.1", "dependencies": { "purecss": "~0.5.0" } }
Open your terminal and type the following command:
bower install
As we can see, we will be using the Pure CSS framework to handle our frontend...