Permalink
Browse files

adding instructions to setup mongodb and test data

  • Loading branch information...
1 parent 01bc528 commit 56f730c492542a62dbb400b945c15fb498ec7490 @DannyDouglass DannyDouglass committed Mar 9, 2012
Showing with 12 additions and 1 deletion.
  1. +12 −1 README.md
View
13 README.md
@@ -2,4 +2,15 @@
You will need to setup MongoDB on your computer before running this exmample. Instructions can be found here:
**Quickstart - Mac**: http://www.mongodb.org/display/DOCS/Quickstart+OS+X
-**Quickstart - Windows**: http://www.mongodb.org/display/DOCS/Quickstart+Windows
+**Quickstart - Windows**: http://www.mongodb.org/display/DOCS/Quickstart+Windows
+
+To create the database and dummy records, type the following commands AFTER you have you mongoDB server running (see quickstart):
+
+1. mongo
+2. use database innovation-day-nodejs
+3.
+ db.message.save( { title: "Bob's Important Message", body: "You need to check out http://espn.com STAT!", sender: "bob@bob.com", recipient: "tom@tom.com", senttimestamp: "2012-03-01T14:54:02.069Z" })
+ db.message.save( { title: "Cam's Important Message", body: "You need to check out http://google.com STAT!", sender: "cam@cam.com", recipient: "al@al.com", senttimestamp: "2012-03-02T14:54:02.069Z"})
+ db.message.save( { title: "Tim's Important Message", body: "You need to check out http://cnn.com STAT!", sender: "tim@tim.com", recipient: "jim@jim.com", senttimestamp: "2012-03-03T14:54:02.069Z" })
+ db.message.save( { title: "Pop's Important Message", body: "You need to check out http://espn.com STAT!", sender: "pop@pop.com", recipient: "larry@larry.com", senttimestamp: "2012-03-04T14:54:02.069Z" })
+4. Done!

0 comments on commit 56f730c

Please sign in to comment.