I have the whole react page ready and just installed express js as a back end (more like a proxy for the api calls). The reason I wanted to have express is to “hide” any api calls I do to the third party websites from the front end. So basically instead of using axios and calling 10 apis which will be visible in the network tab, I call just 1 api to the express and the express does it all in the background nice and clean.
The issue is that the express runs within the react app, but I am planning on separating the express as a whole new project and leave react app on its own and host them both separately.
The question I have to someone who did this kind of stuff: Is it worth doing this and how save and stable this solution is? By hosting the server separately and running it is save? Because if something happens with the express project and crashes, the whole website is dead as it will not be able to call that 1 api and get the data back where by having axios on the front end I can handle any crashes.