Created
July 8, 2021 02:48
-
-
Save AkaashSaini/51be46396c984c61a9c3cb7bc5a8c824 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express=require('express'); | |
const bodyParser=require('body-parser'); | |
const ejs=require('ejs'); | |
const app=express(); | |
app.use(express.static('public')); | |
app.set('view engine','ejs'); | |
app.use(bodyParser.urlencoded({extended:true})); | |
app.listen(3000,(err)=>{ | |
console.log('server started on 3000 post'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment