Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit ed6fe8b

Browse files
committed
s
1 parent 4482ee3 commit ed6fe8b

File tree

3 files changed

+61
-81
lines changed

3 files changed

+61
-81
lines changed

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const mongoose = require("mongoose");
33
const bodyParser = require("body-parser");
44
const cookieParser = require("cookie-parser");
55
const cors = require("cors");
6-
6+
var expressValidator = require('express-validator');
77
const app = express();
88

99
const authRoutes = require("./routes/auth.routes");
@@ -25,7 +25,7 @@ app.use("/auth", authRoutes);
2525
app.use("/course", courseRoutes);
2626

2727
mongoose
28-
.connect("mongodb://localhost:27017/techoptimumdasboard")
28+
.connect("mongodb+srv://warden:uUSN9mQ4u9ZfTT0i@dashboardcluster.hp6kx.mongodb.net/?retryWrites=true&w=majority")
2929
.then((result) => {
3030
app.listen(3000, () => {
3131
console.log("Connected!");

package-lock.json

Lines changed: 57 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"cookie-parser": "^1.4.6",
77
"cors": "^2.8.5",
88
"dotenv": "^16.0.3",
9-
"express": "^4.18.1",
9+
"express": "^4.18.2",
10+
"express-validator": "^6.14.2",
1011
"jsonwebtoken": "^8.5.1",
1112
"mongoose": "^6.6.5",
1213
"node-mailer": "^0.1.1"

0 commit comments

Comments
 (0)