Search code examples
reactjsexpresselectronelectron-packager

Running front- and backend at the same time in electron


I am trying to run my express backend simultaneously with my reactjs frontend. Front- and backend need to be packaged into one single electron app. As I am an beginner in both react and electron, the answer may be obvious.

So the question: What possible ways are there to achieve described behavior?


Solution

  • I found a way. There must be a more elegant one but spawning a child process for the backend in the main process of electron did work great.