aboutsummaryrefslogtreecommitdiff
path: root/node_simple.js
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-23 01:37:34 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-23 01:37:34 +0000
commit107d6ad8cfeead5bafe90f2005fe341c849f36df (patch)
tree3a49d74c50f6285ef7ac93e115281561bf762e2d /node_simple.js
parent3438e19cea85ae530afd1535fe0384a8beebec90 (diff)
Changed session storage to mongo
Diffstat (limited to 'node_simple.js')
-rw-r--r--node_simple.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/node_simple.js b/node_simple.js
index f735b82..4baff5a 100644
--- a/node_simple.js
+++ b/node_simple.js
@@ -64,13 +64,13 @@ var exports = module.exports = {};
const debug_mode = false;
Object.assign = require('object-assign');
-var mongodb = require('mongodb');
-var mongoFactory = require('mongo-factory');
+var mongodb = exports.mongodb = require('mongodb');
+var mongoFactory = exports.mongoFactory = require('mongo-factory');
var ObjectId = require('mongodb').ObjectID;
var assert = require('assert');
// Standard URI format: mongodb://[dbuser:dbpassword@]host:port/dbname
-var uri = 'mongodb://general:assignment4@ds057862.mlab.com:57862/solutions_repo';
+var uri = exports.uri = 'mongodb://general:assignment4@ds057862.mlab.com:57862/solutions_repo';
// Keep this for testing on local machine, do not remove. - Humair
//var uri = 'mongodb://localhost:27017/db';