How to Set Up My React Recipe App in cPanel

  • 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 =
      • This is the same URL that is listed for all React Router routes in ‘App.js’
    • Make app location = ‘public_html/recipeapp_server_files’
  • 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!

Subscribe to new blog posts