diff --git a/app.js b/app.js index 65ac505e..da8a0b41 100644 --- a/app.js +++ b/app.js @@ -27,7 +27,7 @@ const mongoose = require("mongoose"); mongoose.set("strictQuery", false); const dev_db_url = - "mongodb+srv://cooluser:coolpassword@cluster0.lz91hw2.mongodb.net/local_library?retryWrites=true&w=majority"; + "mongodb://localhost:27017/local_library"; const mongoDB = process.env.MONGODB_URI || dev_db_url; main().catch((err) => console.log(err)); diff --git a/package-lock.json b/package-lock.json index ce75aa54..b0b0fef8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "express-locallibrary-tutorial", "version": "0.0.1", "dependencies": { + "async": "^3.2.5", "compression": "^1.7.4", "cookie-parser": "^1.4.6", "debug": "~4.3.5", @@ -155,6 +156,11 @@ "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" }, + "node_modules/async": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", + "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==" + }, "node_modules/babel-runtime": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", @@ -2233,6 +2239,11 @@ "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" }, + "async": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", + "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==" + }, "babel-runtime": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", diff --git a/package.json b/package.json index 0ee1588a..7dece09f 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "serverstart": "DEBUG=express-locallibrary-tutorial:* npm run devstart" }, "dependencies": { + "async": "^3.2.5", "compression": "^1.7.4", "cookie-parser": "^1.4.6", "debug": "~4.3.5", diff --git a/yarn.lock b/yarn.lock index 22c12eec..65abe265 100644 --- a/yarn.lock +++ b/yarn.lock @@ -100,6 +100,11 @@ asap@~2.0.3: resolved "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz" integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY= +async@^3.2.5: + version "3.2.5" + resolved "https://registry.npmjs.org/async/-/async-3.2.5.tgz" + integrity sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg== + babel-runtime@^6.26.0: version "6.26.0" resolved "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz"