node-express-mongodb
node-express-mongodb copied to clipboard
Node.js Restful CRUD API with Node.js, Express and MongoDB
Server is running on port 8080. Cannot connect to the database! MongooseServerSelectionError: connect ECONNREFUSED ::1:27017
cant run npm install after cloning
Line 38: ``` - require("./app/routes/turorial.routes")(app); + require("./app/routes/tutorial.routes")(app); ```
`module.exports = { url: "mongodb://0.0.0.0:27017/bezkoder_db" };`
You need to create an .env file, on root. And copy the .env.example and add your database url.