Tell us what’s happening:
There are a number of errors:
- Where can the
<dbname>
be found so that it can be replaced in the connection string?
In https://www.freecodecamp.org/learn/apis-and-microservices/mongodb-and-mongoose/ it states:
Blockquote:
Notice that the user and cluster#-dbname fields are already filled out for you, so all you would need to replace is the password field with the one that you created in the previous step.
However, it does not appear that <dbname>
actually has been automatically filled out in this connection string provided by Mongodb Atlas:
mongodb+srv://super:<password>@cluster0.nfaii.mongodb.net/<dbname>?retryWrites=true&w=majority
Therefore, how can the dbname
to replace <dbname>
be found?
Also, it appears that the entire string: <dbname>
, including the the less than
and greater than
, is to be replaced in the connection string, right?
- Further, the although the mongodb, and mongoose packages have been added to the package.json file as shown here, the test is stating the following:
{
"name": "fcc-mongo-mongoose-challenges",
"version": "0.0.1",
"description": "A boilerplate project",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"dependencies": {
"body-parser": "^1.15.2",
"express": "^4.12.4",
"mongoose": "^5.9.20",
"mongodb": "^3.6.2"
},
"engines": {
"node": "4.4.5"
},
"repository": {
"type": "git",
"url": "https://hyperdev.com/#!/project/welcome-project"
},
"keywords": [
"node",
"hyperdev",
"express"
],
"license": "MIT"
}
// running tests "mongodb" dependency should be in package.json "mongoose" dependency should be in package.json "mongoose" should be connected to a database // tests completed
Your code so far
https://repl.it/@controlunit/boilerplate-mongomongoose#package.json
Your browser information:
Chromium
Challenge: Install and Set Up Mongoose
Link to the challenge: