Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

675
Views
Cómo ejecutar el backend json falso desde la terminal

Creé un archivo JSON falso para que funcionara como backend y, cuando lo creé inicialmente, comenzó a ejecutarse automáticamente. Lo cerré cuando terminé de trabajar por el día, y ahora no sé cómo volver a abrir el servidor json, por lo que ninguno de los códigos funciona ahora.

¿Alguien sabe cómo ejecutar el archivo json desde la terminal después de detenerlo?

over 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Los archivos Json no se ejecutan automáticamente. ¿Por casualidad usaste el paquete json-server npm? Si es así, consulte esos documentos para saber cómo ejecutarlo nuevamente.

over 4 years ago · Juan Pablo Isaza Report

0

Puede usar el servidor JSON para hacer este trabajo, instale el módulo json-server

módulo de referencia de nodejs: https://www.npmjs.com/package/json-server

Inicie el servidor JSON ejecutando este comando en la terminal

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

Ahora, si va a http://localhost:3000/**, obtendrá

 { you should be able to see your object code here }
over 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!