Marco
Marco

Reputation: 579

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?

Upvotes: 2

Views: 945

Answers (1)

Marco
Marco

Reputation: 579

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.

Upvotes: 1

Related Questions