title: Why my app.get('/') is not getting request in express
body: <p>I am new to backend development and learning express. I have the following code:</p>
  <p><code>index.js</code>:</p>
  <pre><code>const express = require('express');
  const app = express();
  
  app.get('/',(req,res)=&gt;{
      console.log(&quot;hitting request&quot;);
  })
  app.listen(3001,()=&gt;console.log(&quot;Mock server listening at 3001&quot;));
  </code></pre>
  <p>But when I am hitting <code>http://localhost:3001/</code> in postman nothing is printed on console.</p>
  <p>May anyone tell me why I am getting this issue? I am also using nodemon as dev dependency.</p>
  <p><code>package.json</code>:</p>
  <pre><code>{
    &quot;name&quot;: &quot;mock-server&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;license&quot;: &quot;MIT&quot;,
    &quot;scripts&quot;: {
      &quot;dev&quot;: &quot;nodemon index.js&quot;
    },
    &quot;dependencies&quot;: {
      &quot;bignumber.js&quot;: &quot;^9.1.0&quot;,
      &quot;express&quot;: &quot;^4.18.1&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;nodemon&quot;: &quot;^2.0.19&quot;
    }
  }
  </code></pre>