Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
controllers
node_modules
public
NationalNames.csv
README.md
npm-debug.log.f157896acaf457eb9db8f0dd3dd5284f
package.json
server.js

README.md

popularBabiesNames

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.

You can’t perform that action at this time.