Skip to content

Commit 2b94eae

Browse files
Initial Commit
1 parent 6b8c1b7 commit 2b94eae

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

app.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)