This example makes use of node.js server with the use of npm to run the application.
Dashboard built using:
D3.js
Dc.js
Node.js
Crossfilter.js
Jquery
MongoDB
To run the application:
- Download MongoDB. The link is this.
- Install MongoDB. The link for installation procedure is this.
- Now navigate to the folder where you installed MongoDB and locate the bin folder. Start the mongoDB server by typing in ./mongod
If you fund an error stating that /data/db not found, make a directory under root directory named data containing db by typing in:
sudo mkdir -p /data/db - Keep the terminal running as is and open up a new terminal. Navigate again to the same directory (bin) and import the dataset in this directory by typing in
./mongoimport -d donorschoose -c projects --type csv --headerline --file /path/to/sampledata.csv - Install Nodejs and NPM
- Navigate to the dash_board2 directory using command prompt and run npm install, this will install the dependencies
- Navigate to the dash_board2 directory using command prompt and run npm start
- In your browser go to localhost:8080/index.html