How to make HTML pages using express in NodeJS

 const express=require('express');


const path=require('path');
const app=express();


const publicPath=path.join(__dirname,'public');
// console.log(publicPath);

app.use(express.static(publicPath));

app.listen(4000);


// now we have represent a snapshot -

This is create file name -



Post a Comment

0 Comments