diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index c92f11a..3a72eef 100644 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -2,7 +2,7 @@ var path = require('path'); var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); -var MongoClient = require('mongodb').MongoClient; +//var MongoClient = require('mongodb').MongoClient; //const socketAuth = require('socketio-auth'); @@ -65,7 +65,7 @@ cors(corsOptions), (req, res, next) => { }); // ------------------------------------------------ - +/* var mongouser = "playgrounduser"; var mongopass = "efvvnuioervefSDFSGYGHRDFVsdfergvssppiiedifhwincvinviw_dbfjbsifbsdkjfswuunscfudfgbbfvibqefwrvnine"; const mongourl = 'mongodb://'+mongouser+':'+mongopass+'@node1:27017/?replicaSet=rs0'; @@ -78,6 +78,7 @@ var mongooption = { } } // Create a new MongoClient + const client = new MongoClient(mongourl, mongooption); var dbName; @@ -101,7 +102,7 @@ client.connect(function(err) { //client.close(); }); }); - +*/