Popular Baby Names
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.
The project is available to download on github:
In order to import baby name data, we need to import the NationalNames.csv into mongodb.
To do so:
Download the repository by either downloading the zip from github or using the command:
git pull https://github.com/chenchik/popularBabiesNames.git master
open up vagrant using the command:
find the directory you put this repository in
make sure you have a database in mongodb called ‘test’
open mongodb by running the command:
in vagrant, and make sure you have a database called ‘test’
then type the command:
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:
into vagrant in the ‘babynames’ directory.
localhost:8080 into your browser url.
All front end materials are stored in the ‘/public’ directory.