Skip to content

Commit

Permalink
installing and express
Browse files Browse the repository at this point in the history
  • Loading branch information
codingXpert committed Jun 27, 2022
1 parent 884c1c8 commit e772bc1
Show file tree
Hide file tree
Showing 3 changed files with 1,021 additions and 0 deletions.
19 changes: 19 additions & 0 deletions express.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const express = require('express');
const app = express();


app.get('' , (req , res) => {
res.send('<h1>Welcome , this is home page</h1>');
});

app.get('/about' , (req , res) => {
res.end('<h1>Welcome , this is about page</h1>');
});

app.get('/help' , (req , res) => {
res.send('<h1>Welcome this is help page</h1>');
})

app.listen(8000 , () => {
console.log('Server running on the port 8000')
});
Loading

0 comments on commit e772bc1

Please sign in to comment.