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

645
Views
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 answers
Answer question

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 Report

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 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!