You could probably package the Erlang/Elixir/Phoenix parts as a release… maybe wrap it in an OS package (Chocolatey / Homebrew / DEB / RPM / whatnot) with proper startup scripts etc, and have a dependency on an official PostgreSQL package.
This sounds interesting — I’m still new to elixir, but at least in theory it seems like you could package it up with the erlang runtime system (erts) and then boot it up from electron. If you get this working, send me a link
I was in the same position with my logistics application. I was going to deploy elixir as a api backend as normal then write a script in the node js that handled rest calls to the elixir backend., this was probably the fastest way of getting where i wanted. that said they ended up using the browser instead as they perceived it as more flexible in the end