From 9641d0ee654a9053ecc5253dede55cf4f91e7157 Mon Sep 17 00:00:00 2001 From: felixtanhm Date: Mon, 6 May 2024 21:56:35 +0800 Subject: [PATCH] edit populate --- full-stack-javascript/21-inventory-application/server/.env | 1 + .../21-inventory-application/server/populateDb.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 full-stack-javascript/21-inventory-application/server/.env diff --git a/full-stack-javascript/21-inventory-application/server/.env b/full-stack-javascript/21-inventory-application/server/.env new file mode 100644 index 0000000..0f57617 --- /dev/null +++ b/full-stack-javascript/21-inventory-application/server/.env @@ -0,0 +1 @@ +mongodb+srv://felixtanhm-top:4eLAie362hId35TA@cluster0.wiqnlaq.mongodb.net/pokemon?retryWrites=true&w=majority \ No newline at end of file diff --git a/full-stack-javascript/21-inventory-application/server/populateDb.js b/full-stack-javascript/21-inventory-application/server/populateDb.js index c2559aa..79bf5c7 100644 --- a/full-stack-javascript/21-inventory-application/server/populateDb.js +++ b/full-stack-javascript/21-inventory-application/server/populateDb.js @@ -2,7 +2,7 @@ const axios = require("axios"); console.log( - 'This script populates some test books, authors, genres and bookinstances to your database. Specified database as argument - e.g.: node populatedb "mongodb+srv://felixtanhm-top:4eLAie362hId35TA@cluster0.wiqnlaq.mongodb.net/pokemon?retryWrites=true&w=majority"' + 'This script populates some test books, authors, genres and bookinstances to your database. Specified database as argument - e.g.: node populatedb "mongodb+srv://abc:123@cluster0.wiqnlaq.mongodb.net/pokemon?retryWrites=true&w=majority"' ); // Get arguments passed on command line