text: const jsonserver = require('json-server');
  
  const server = jsonserver.create();
  
  const router = jsonserver.router('db.json');
  
  const middlewares = jsonserver.defaults();
  
  const port = process.env.PORT || 8080;
  
  server.use(middlewares);
  server.use(router);
  server.listen(port, ()=> {
      console.log(`JSON Server está rodando na porta ${port}`);
  });