Updated npm dependencies and added a note on the compatabile version of mongoose for connecting to the free tier of mongodb atlas

This commit is contained in:
Abdullah 2019-10-28 14:09:03 +08:00 committed by Kristofer Koishigawa
parent 7fed7e80e7
commit 700d85ccb6
2 changed files with 9 additions and 9 deletions

View File

@ -1,20 +1,20 @@
{ {
"name": "shorturl", "name": "shorturl",
"version": "0.0.1", "version": "0.0.2",
"description": "API project for freeCodeCamp", "description": "API project for freeCodeCamp",
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {
"start": "node server.js" "start": "node server.js"
}, },
"dependencies": { "dependencies": {
"express": "^5.0.0-alpha.2", "express": "^4.17.1",
"mongodb": "^2.2.5", "mongodb": "^3.3.3",
"mongoose": "^4.5.7", "mongoose": "^5.7.7",
"cors": "^2.8.1", "cors": "^2.8.5",
"body-parser": "^1.15.2" "body-parser": "^1.19.0"
}, },
"engines": { "engines": {
"node": "4.4.5" "node": "10.17.0"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -26,4 +26,4 @@
"express" "express"
], ],
"license": "MIT" "license": "MIT"
} }

View File

@ -12,7 +12,7 @@ var app = express();
var port = process.env.PORT || 3000; var port = process.env.PORT || 3000;
/** this project needs a db !! **/ /** this project needs a db !! **/
// mongoose.connect(process.env.MONGOLAB_URI); // mongoose.connect(process.env.DB_URI);
app.use(cors()); app.use(cors());