From d60c6338e2a52bec2bb9d9bde4e2af2ddb8a24cf Mon Sep 17 00:00:00 2001 From: ritik Date: Tue, 21 Sep 2021 14:43:05 +0530 Subject: [PATCH 1/2] modified styling --- views/index.ejs | 133 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 119 insertions(+), 14 deletions(-) diff --git a/views/index.ejs b/views/index.ejs index 9be761d..8366c73 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -2,6 +2,104 @@ Intro to Node and MongoDB + @@ -10,41 +108,48 @@ } -

Into to Node and MongoDB

+

Intro to Node and MongoDB

+
-
+ + + - +
+


-

value : in database :

+

Value : in Database :


+
- - - - - + + + + + + <% for(let i=0;i - - - - - + + + + + <%}%>
Sno.firstNamelastNameIDDeleteSno.First NameLast NameIDDelete
<%=(i+1)%><%=wow[i].firstName%><%=wow[i].lastName%><%=wow[i]._id%><%=(i+1)%><%=wow[i].firstName%><%=wow[i].lastName%><%=wow[i]._id%>
+
\ No newline at end of file From 06152738e6098fe868bf52746bfcbe35f3cac034 Mon Sep 17 00:00:00 2001 From: ritik Date: Fri, 24 Sep 2021 12:06:23 +0530 Subject: [PATCH 2/2] changes --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 8a8c35b..e6a1e78 100644 --- a/app.js +++ b/app.js @@ -1,6 +1,6 @@ var express = require("express"); var app = express(); -var port = 3000; +var port = process.env.PORT|| 3000; var bodyParser = require('body-parser'); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true }));