This is an interactive website showcasing popular baby names from 1880 to 2014 built using Node.js, Angular.js, jQuery, Express, and Vagrant with data represented using SVG based graphics.
In order to import baby name data, we need to import the NationalNames.csv into mongodb.
To do so:
Download this repository,
open up vagrant using
find the directory you put this repository in
make sure you have a database in mongodb called 'test'
open mongodb by running
mongo in vagrant
make sure you have a database called 'test'
exit mongo by using ctrl>C
then in order to import NationalNames.csv into mongodb type this into vagrant command line:
mongoimport -d test -c names --type csv --file NationalNames.csv --headerline
Now your database should contain everything you need.
Backend node functionality, mongodb queries, and routes are stored in server.js
to launch the website type
node server.js into vagrant in the 'babynames' directory.
localhost:8080 into your browser url.
All front end materials are stored in the '/public' directory.