What is Node js ?
1st step create below file
index.js
and put below code
const http = require("http");
const myServer = http.createServer((req,res)=>{
console.log("New request is coming");
res.end('Hellow from server');
});
myServer.listen(8000,()=>console.log('server started'));
Next go to package.json and put below code
Next to run below command for start the app
npm start
Output:-
Thanks for reading