Unverified Commit f99f9c3e authored by Mark Stenglein's avatar Mark Stenglein
Browse files

Actually added mongoose and...

- Added initial script to populate the database
parent 4eff95d8
......@@ -13,6 +13,7 @@
"author": "GMU Student Run Computing and Technology",
"license": "MIT",
"dependencies": {
"express": "^4.14.0"
"express": "^4.14.0",
"mongoose": "^4.5.5"
}
}
......@@ -31,6 +31,9 @@ app.use(express.static(path.join(__dirname, 'public')));
// Connect to mongo
mongoose.connect(config.mongoDBURL);
// Populate initial data
var populateDB = require('./setup/populateDB');
populateDB();
app.use('/', routes);
app.use('/api', api);
......
module.exports = initialPopulate;
// grab the things we need
var mongoose = require('mongoose');
var populateDB = function() {
console.log("test worked");
}
module.exports = populateDB;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment