Running Angular 4 app using a JSON server
I have backend service running on port 5005, and app running on 4200, in order to "talk" with each other I have set up proxy.config.json
file which looks like this
{ "/api/*":{ "target":"http://localhost:5005", "secure": false, "logLevel": "debug" }}
and when I serve my app I run ng serve -open --sourcemap=false --proxy-config proxy.config.json
command.
You can also try to do something like this.