• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Set up ReactJS app with a NodeJS/Express backend

Mr. Tweet

New Pleskian
Hello,

I'm trying to figure out how to properly set up a react app that is using a node/express backend. I already have the nodejs extension downloaded and install from Plesk. I've created my domain and connected Plesk with my Git repo. I've pulled all my files from my repo to the /httpdocs directory and set up the nodejs extension settings. Now what? The question I have is, am I able to run both the backend nodejs and the front react app on the same domain from the same directory? On my local machine, I have both the nodejs backend (backend directory) and the react frontend files located in the same directory (see screenshot). To get the app to work, in my terminal I start the nodejs backend on port 5000, and on another terminal, I start the react frontend on port 3000. How do I do that on Plesk? How do I set up the backend and the frontend in Plesk and have them communicate with each other?
 

Attachments

  • Screen Shot 2020-07-29 at 8.51.58 PM.png
    Screen Shot 2020-07-29 at 8.51.58 PM.png
    64.5 KB · Views: 20
Back
Top