title: Rendering handlebars Page Node.js
body: <p>I am attempting to render a handlebars page and I am getting my 404 error and I am not sure why. It's almost as if it does not recognize the handlebars file. My file hierarchy looks like this:
  <a href="https://i.stack.imgur.com/KlFCC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KlFCC.png" alt="enter image description here"></a></p>
  
  <p>I am calling the path with this section of the current page:</p>
  
  <pre><code>&lt;p&gt;&lt;a href="http://18.219.103.143:3000/admin-dashboard"&gt;Admin Login&lt;/a&gt;&lt;/p&gt;
  </code></pre>
  
  <p>In the main js file, I am handling the <code>admin-dashboard</code> with this code:</p>
  
  <pre><code>app.get('/admin-dashboard', function(req,res){
    var context = {};
    res.render('adminDash', context);
  });
  </code></pre>
  
  <p><code>adminDash.handlebars</code> only contains:</p>
  
  <pre><code>&lt;h1&gt;Admin Page&lt;/h1&gt;
  </code></pre>
  
  <p>View Engine:</p>
  
  <pre><code>app.engine('handlebars', handlebars.engine);
  app.set('view engine', 'handlebars');
  app.set('port', 3000);
  app.use(express.static('public'));
  </code></pre>
  
  <p>I tried console.log and/or alert in the <code>app.get</code> function to debug but nothing printed to console. Might it be the way I am calling the <code>render()</code>? Not sure how to debug when I can't print statements. Does anything look obviously out of place?</p>