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 vagrant ssh
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'
then type use test
then type: db.createCollection("names")
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
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.
Then type localhost:8080
into your browser url.
_________FRONT END
All front end materials are stored in the '/public' directory.