To Use:
(requires a local node environment with npm)
-
Clone the repo.
-
Install the packages:
npm install
-
Install bower components
bower install
-
Launch:
node server.js
-
Visit in your browser: Localhost:3000
- node
- morgan
- body-parser
- ejs
- express
- D3
- Chartist
- Materialize CSS Framework
- D3-tip
- JQuery
- Underscore
The data, which only needs to be parsed once, is parsed in a seperate Node application using Javascript and D3, and manually saved to files. If I was to build a similar application, with a static data source that may need to be updated or have candidates added to it, I would approach the data parsing in a different way. As it stands, the d3 parse and get methods employed to parse the CSV use XMLHttpRequest, tying them to the DOM. If these methods were replaced with a Node CSV parse module, a simple command line program could be implemented to parse the data and save it using Node's FS, making it more modular, and easier to convert to a server side implementation if a live data source became available.
You can contribute in several ways:
Who likes bugs? Provide a detailed report of any bugs you encounter and open an issue on our repo's issues section
Like fixing typos or adding to documentation? We encourage you to fork our project project, make your changes, and submit a pull request. Extra sets of eyes and fresh perspectives are wanted and welcome.
See a problem that you have a solution for? You're more than welcome to make a fix and submit it as a pull request.
Code released for entertainment and educational purposes.
Please contact authors for additional usage.