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