Created
April 1, 2015 03:23
-
-
Save giobyte8/138e616836522d2c8247 to your computer and use it in GitHub Desktop.
Parte 3 | Creando un sistema de chat sobre NodeJS con Socket.IO, ExpressJS, MongoDB, Foundation y Openshift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var messageDAO = require('./dao/MessageDAO').MessageDAO; | |
... | |
... | |
MongoClient.connect('mongodb://'+mdbconf.host+':'+mdbconf.port+'/'+mdbconf.db, function (err, db) { | |
var usersDAO = new userDAO(db); // Initialize userDAO | |
var messagesDAO = new messageDAO(db); | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment