Closed Adaok closed 7 years ago
Hello, @Adaok.
Which part of the stack are you using ng-fullstack
? Client or server?
Hey @ericmdantas ! I have generate two projects : one only client with ng2, node and typescript, and for the server : same things ng2, node and typescript. I have run first server, after the client, and when I want to add a item, I have a 404 error :/
I see.
Since you're using a proxy, you'll have to change some props inside your .alivrc
. The properties proxyWhen
and proxyTarget
will have to be changed to fit your case. proxyWhen
is the prefix given to your api
calls, generally it's /api/*
(so everything that hits this will be reverse proxied) and proxyTarget
is the url of your server responsible for the response, it could be something like http://localhost:1234
, for example.
Thanks you @ericmdantas , that was the reason for my error. Thanks again for your reply, I will be able to continue to look to work with your generator. :)
👍
Hello,
I'm not familiar with MEAN stack application and I would like to know how run the todo app when I generate the client and the server seperately.
I have a 404 error when I want call the Post API.
Thanks in advance :)