Wednesday 10 January 2018

Deploying MERN stack to digital ocean

Hi, I am trying to deploy MERN stack to digital ocean... I have the front-end and back-end running, but I cannot get them to communicate!I have no idea where to go from here. And I don't quite understand what's going on.Basically when I go to www.mywebsite.com, I see my front-end react app running.I have my node.js server running on port 8080. So when I go to www.mywebsite.com:8080, I get my server.However, all of the ajax calls to the server end up with 404 no found. What do I do?

Submitted January 10, 2018 at 08:42AM by SupahSayan

2 comments: