node1
for mangaging dependencies we create package.json:npm init -y
package.json:
"scripts": {
"start":"nodemon app.js",
const express=require('express');
const app=express();//app variable hold
//the reference of the express..
//3route:---express run on middleware system
//like use...//move to the next[]
app.use("/",(req,res,next)=>{
res.send("hello world");
})
app.listen(5000,()=>{
console.log("connected with the port 5000");
});//server with the port
Comments
Post a Comment