I want to build a desktop app using Electron. I know that Electron handles both the server and the interface part and I am thinking to build the app in such a way that these two parts to be clearly delimited.
What I want to do in the future is to build a website, most likely using React and use the Electron app as a server.
Since Electron is based on NodeJs I don't see why this wouldn't be possible. I plan to expose some APIs and the web app to use them. So a part of the desktop app will be the server for the web app too.
My questions are:
How easy is it to achieve this?
And how does this approach stands in terms of security concerns?