Updated controller logic and reworked unit testing

This commit is contained in:
Gregory Campbell
2021-11-25 15:25:29 -05:00
parent 1933391ed3
commit 25cc71f485
7 changed files with 687 additions and 47 deletions
+11
View File
@@ -0,0 +1,11 @@
require('dotenv').config({ path: 'development.env' });
const mongoose = require('mongoose'); //import mongoose
mongoose.connect(
process.env.MONGODB_URI,
(err) => {
if (err) return console.log("Error: ", err);
console.log("MongoDB Connection -- Ready state is:", mongoose.connection.readyState);
}
);