Mongo DB and Mongoose Challenge 1

Mongo DB and Mongoose Challenge 1
0

#1

I am facing an issue in this challenge. In glitch, the connection looks fine, but when I am trying to pass the challenge Iam getting 3 times “not found” on the console. Stuck on this. Need help

below is my code :

myApp.js :

var express = require(‘express’);
var app = express();
var bodyParser = require(‘body-parser’);
const mongoose = require(‘mongoose’);
mongoose.connect(process.env.MONGO_URI, { useNewUrlParser: true });

package.json:

{
“name”: “fcc-learn-node-with-express”,
“version”: “0.1.0”,
“dependencies”: {
“express”: “^4.16.4”,
“body-parser”: “^1.15.2”,
“cookie-parser”: “^1.4.3”,
“mongoose”: “^5.3.13”,
“mongodb”: “^3.1.10”,
“connect-mongo”: “^2.0.2”,
“fcc-express-bground”: “https://github.com/Em-Ant/fcc-express-bground-pkg.git”
},
“main”: “server.js”,
“scripts”: {
“start”: “node server.js”
},
“engines”: {
“node”: “11.1.0”
}
}

.env :


SECRET=
MADE_WITH=
MONGO_URI=mongodb://pratiks77:[email protected]:37748/pratikdb

challenge console log :

// running tests

Not Found

Not Found

Not Found

// tests completed

#2

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.