Install and Set up Mongoose problems
I’m getting the mongoose is not connected message on running the test.
Mongodb and mongoose dependencies are okay.
Relevant code :
in the . env :
MONGO_URI=mongodb://:@ds123790.mlab.com:23790/yakdatabase
in myapp.js:
var mongoose = require(“mongoose”);
mongoose.connect(process.env.MONGO_URI);
in package.json :
“dependencies”: {
“express”: “^4.12.4”,
“body-parser”: “^1.15.2”,
“mongodb”: “^3.6.6”,
“mongoose”: “^5.1.6”
},
Help appreciated. username and password to connect to mLab seem okay. Any quick way to validate this ?