Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.03 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.03 KB

interactive-election2015-polls

Getting started

If you haven't already installed nodejs, grunt-cli and bower then go do that first.

Next, install all the dependency packages and start the app:

> npm install
> bower install
> grunt

You can now view the example project running at http://localhost:9000/

Installing additional libraries

If you need to use any additional libraries such as D3 or jquery then use:

bower install d3 --save

That will update the bower.json dependency file and allow requirejs to bundle the library into the main js.

You can then require the library directly into your code via the define function:

define(['d3', function(d3) {
  var chart = d3.box();
});