mongodb on a mac – get it running

Here’s how I did it:

I watched these 2 youtube videos:

part 1: https://www.youtube.com/watch?v=-GE2DpwfbW0
part 2: https://www.youtube.com/watch?v=AF6GxIUtGhQ

I grabbed sample data to play with from here:
Crunching 30 Years of NBA Data with MongoDB Aggregation

I then used mongorestore to import the data into mongo:
http://stackoverflow.com/questions/6770498/how-to-import-bson-file-format-on-mongodb

Here was the exact line to bring it in:
$ mongorestore -d nba -c all_games ~/Desktop/dump/nba/games.bson

Thanks it. Ready to play with MongoDB now.

Leave a Reply

Your email address will not be published. Required fields are marked *