There was an error while loading. Please reload this page.
1 parent 6b8c1b7 commit 2b94eaeCopy full SHA for 2b94eae
app.js
@@ -0,0 +1,25 @@
1
+const express=require('express');
2
+const bodyParser=require('body-parser');
3
+const ejs=require('ejs');
4
+require('dotenv').config();
5
+
6
+// const homeContent;
7
+// const aboutContent;
8
9
10
+// Initialize Express
11
+const app=express();
12
13
+// Setting up template engine
14
+app.set('view engine','ejs');
15
16
+// bodyParser Initialized
17
+app.use(bodyParser.urlencoded({extended:true}));
18
19
+//Static Files Served
20
+app.use(express.static('public'));
21
22
23
+app.listen(process.env.PORT || 8080, ()=>{
24
+ console.log("Server Up At "+port);
25
+});
0 commit comments