MihailPertsev
Elixir or Phoenix integration with Node JS
Hi! I am new to elixir and I am realy love it, this language is simply amazing. My question is this
I have existing Electron app, that contains a bunch of node js scripts. Basically, what I am doing is browser automation via playwright (filling forms with data => save result => display report to user) and what I want is parallel execution of those scripts. How can I create kind of “control” elixir app for my node scripts?And how can I connect it to my existing electron interface.
The flow that I want to achieve: User clicks on button => electron app somehow communicate with elixir app => elixir app starts node js instance 1; User clicks again => electron communicate with elixir => elixir starts node js instance 2… etc
Marked As Solved
joddm
You should probably look into ports.
Also Liked
harmon25
Could also try this for calling node from elixir.
MihailPertsev
This is the picturse that should clarify what I want
Do not misunderstand me, right now everything works without elixir and it works fine, but what I want is to test and kind of play with elixir’s parallelism ability. Any simple way is ok for me, I am not an expert after all.
hubertlepicki
So @MihailPertsev have you ended up using Playwright? If so, which approach did you choose and how did it go?







