- Create a folder in ‘public_html’ called ‘recipeapp_server_files’
- Add server ‘app.js’ to ‘recipeapp_server_files’
- Setup Node app in cPanel:
- Make URL = https://omarshishani.com/recipeapp
- This is the same URL that is listed for all React Router routes in ‘App.js’
- Make app location = ‘public_html/recipeapp_server_files’
- Make URL = https://omarshishani.com/recipeapp
- In ‘package.json’ for the React app, add the following line somewhere: “homepage”: “.”,
- Make sure that the database is set up properly on cPanel, with the correct user privelages.
- That’s it!