DEV Community

Discussion on: FullStack setup (Node.js, React.js and MongoDB)

Collapse
 
rajathans profile image
Rajat Hans

The proxy isn't working for me

Collapse
 
pacheco profile image
Thiago Pacheco

Hello Rajat,

Can you tell me if testing the backend and frontend separately works correctly?
I just gave it another try here and everything works perfect.

Another option you could try is to config the proxy directly in the package.json, the latest versions of react supports this. It is as simple as adding the following line to your package.json file:
"proxy": "localhost:5000"

Collapse
 
rajathans profile image
Rajat Hans

Adding proxy key worked. Thanks! 😃

Thread Thread
 
pacheco profile image
Thiago Pacheco

Great Rajat!! :D