$ npm install express
// npm install express
const express = require('express');
const app = express();
app.get('/', (req, res)=> {
res.send('Hello World');
})
app.listen(3000,()=>{
console.log("starting...");
});
const express = require('express');
const app = express();
app.get('/', (req, res)=> {
res.send('Hello World');
})
app.listen(3000,()=>{
console.log("starting...");
});
npm install --save express mongoose ejs dotenv
ejs => template engine
express-ejs-layout => for layout ejs template
express-session => create the session
express-flash => for flash message
connect-mongodb-session => save the session in the mongoDB