I am new to hosting and it would be of immense help to me if somebody can explain in very detail.
I have following questions:
- I have front end using
react app
and backend usingexpressjs
andmysql
. i have a working simple application in my computer . I start backend and front end using local host and they work perfect . when I bought hosting which supportsnodejs
, I don't know where to place the front end file and backend file . npm run build
- > builds a react app . in cpanel - file manager , which file I should place in public html . front end code or backend express code- I placed html code in public_html but how to start interacting with server.
- When I used fetch("http://lcoalhost:30000") to fetch I couldn't get the app.get("/",(req ,resp)) working ..
I am really confused . if somebody can explain in detail how to start uploading both the react and express file and the location to place these files.