Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

647
Visualizações
How to run fake json backend from terminal

I created a fake JSON file to work as my backend, and when I initially created it, it started to run automatically. I closed it when I was done working for the day, and now I don't know how to re-open the json-server so none of the code works now.

Does anybody know how to run the json-file from the terminal after stopping it.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Json files don't run automatically. Were you by any chance using the json-server npm package? If so, check those docs to find how to run it again.

about 4 years ago · Juan Pablo Isaza Relatório

0

You can use JSON server to do this job, install json-server module

nodejs reference module : https://www.npmjs.com/package/json-server

Start JSON Server by running this command on the terminal

json-server --watch db.json // you give your path here

Now if you go to http://localhost:3000/**, you'll get

{ you should be able to see your object code here }
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda