- In your entry file mongoose .connect("mongodb://localhost/vidly") .then(() => console.log("Connected to MongoDB...")) .catch((err) => console.log("Cloud not connect to MongoDB..."));