typicode / json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)
Other
72.75k stars 7.01k forks source link

Json-server and http-server command #611

Open pritigupta068 opened 7 years ago

pritigupta068 commented 7 years ago

Hi, In visual studio code we use "json-server db.json" command to create a rest service out of the content in db.json. And http-server command to publish the changes done in angular project.

But when I am switching between these two commands I need to stop either of them. So I am not able to work with the rest api created out of my json kept in db.json and new changes done with $http.get service in Angular JS.

Can anyone please help?

Thanks for your help and suggestions.

dankraus commented 7 years ago

If i'm understanding correctly, then you just need to open up another terminal window and run one in each.