Using the package in other projects
In this section, we will create a minimal web page that uses the windmill package. We begin by creating an empty directory, initializing the repository, and creating a README.md
file. We create the bower.json
file using bower init
. We will install bootstrap to use it in our web page:
$ bower install --save bootstrap
This will download bootstrap and its dependencies to the bower_components
directory. We will install the windmill library using the Git endpoint of the repository:
$ bower install --save https://github.com/pnavarrc/windmill.git
This will download the current version of windmill and the version of D3 on which windmill depends. The contents of the bower_components
directory are as follows:
bower_components/ bootstrap/ d3/ jquery/ windmill/
In the index page, we will display the average wind speed in a certain city during 2013. We will store the data in the wind.csv
file located in the data
directory. The CSV file has three columns that...