For this to work, we are going serve React's static files for the client, and are going to proxy our Express server to /api
.
Disclaimer - Ensure you are the root user, otherwise some of these commands may not work. The Express app also needs to server under a seperate route from the client (e.g /api
), so all backend routes will look like this: /api/signup
.