From 700d85ccb67be6b744fc753aa7aae6f408e5cf54 Mon Sep 17 00:00:00 2001 From: Abdullah Date: Mon, 28 Oct 2019 14:09:03 +0800 Subject: [PATCH] Updated npm dependencies and added a note on the compatabile version of mongoose for connecting to the free tier of mongodb atlas --- package.json | 16 ++++++++-------- server.js | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 6401e3c..002fe26 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,20 @@ { "name": "shorturl", - "version": "0.0.1", + "version": "0.0.2", "description": "API project for freeCodeCamp", "main": "server.js", "scripts": { "start": "node server.js" }, "dependencies": { - "express": "^5.0.0-alpha.2", - "mongodb": "^2.2.5", - "mongoose": "^4.5.7", - "cors": "^2.8.1", - "body-parser": "^1.15.2" + "express": "^4.17.1", + "mongodb": "^3.3.3", + "mongoose": "^5.7.7", + "cors": "^2.8.5", + "body-parser": "^1.19.0" }, "engines": { - "node": "4.4.5" + "node": "10.17.0" }, "repository": { "type": "git", @@ -26,4 +26,4 @@ "express" ], "license": "MIT" -} \ No newline at end of file +} diff --git a/server.js b/server.js index ab0929d..cee39f8 100644 --- a/server.js +++ b/server.js @@ -12,7 +12,7 @@ var app = express(); var port = process.env.PORT || 3000; /** this project needs a db !! **/ -// mongoose.connect(process.env.MONGOLAB_URI); +// mongoose.connect(process.env.DB_URI); app.use(cors());