Nodemon

 NODEMON it is a package which is used to automatically restart the server whenever we make a change in the code

to install it COMMAND: npm install nodemon

installing the package globally is useful

npm install -g nodemon


app.get("/", (req, res) => {
  res.send("this is the root path");
});

previously the code was

app.get("/", (req, res) => {
  res.send("you searhed for root path");
});

Comments

Popular posts from this blog

DATABASE RELATIONSHIPS

ROUTING (GET /) home route

Query Strings