skip to Main Content

Mongodb – MongooseServerSelectionError: connect ECONNREFUSED ::1:27017, connect ECONNREFUSED 127.0.0.1:27017

Below is my implementation: main file const express = require("express"); const path = require("path");; const app = express(); const hbs = require("hbs"); require("./db/conn") const port = process.env.PORT || 3000 ; const static_path = path.join(__dirname,"../public"); const template_path = path.join(__dirname,"../templates/views"); const partials_path…

VIEW QUESTION
Back To Top
Search