Skip to content

Commit

Permalink
Step 5 - installing drivers and MongooseJS
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jul 19, 2013
1 parent 36e23af commit 2eec604
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ var express = require('express')

var app = express();

var Mongoose = require('mongoose');
var db = Mongoose.createConnection('localhost', 'mytestapp');

// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
},
"dependencies": {
"express": "3.2.3",
"jade": "*"
"jade": "*",
"mongodb" : ">=0.9.6-7",
"mongoose" : ">=3.6"
}
}
}

0 comments on commit 2eec604

Please sign in to comment.