title: my node code is in a loading loop when I enter the host location
body: <p>I'm doing a node course and I got to the beginning of a project, however when trying to enter the host location and at the defined port the application just stays in a loading loop and doesn't load</p>
  <p>APP.JS</p>
  <pre><code>// Módulos
      const express = require('express');
      const handlebars = require('express-handlebars');
      const bodyparser = require('body-parser');
      const app = express() 
      const admin = require('./routes/admin.js');
      // const mongoose = require('mongoose');
  
  // Config
      // Body Parser
          app.use(bodyparser.urlencoded({extended:true}));
          app.use(bodyparser.json);
      //Handlebars
          app.engine('handlebars', handlebars({defaltLayout: 'main'}));
          app.set('view engine','handlebars');
      //Mongoose
  
  //Rotas  
      app.use('/admin',admin);
  
  //Outros
  const PORT = 8081;
  app.listen(PORT, () =&gt; {
      console.log('Servidor Rodando');
  })
  
  </code></pre>
  <p>ADMIN.JS</p>
  <pre><code>const express = require('express');
  const router = express.Router();
  
  router.get('/', (req,res) =&gt; {
      res.send('Pagina principal, painel de adm')
  })
  router.get('/posts', (req,res) =&gt; {
       res.send('Pagina de posts');
  })
  router.get('/categorias',(req,res) =&gt; {
      res.send('Pagina de categorias');
  })
  
  module.exports = router;
  </code></pre>