Skip to content

Instantly share code, notes, and snippets.

@AkaashSaini
Created July 8, 2021 02:48
Show Gist options
  • Save AkaashSaini/51be46396c984c61a9c3cb7bc5a8c824 to your computer and use it in GitHub Desktop.
Save AkaashSaini/51be46396c984c61a9c3cb7bc5a8c824 to your computer and use it in GitHub Desktop.
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