Hosting UI in electron and browser simultaneously
I’m not sure if this is the right place to ask, but is it possible for quasar to run an electron app that can also be visible from a normal webbrowser?
e.g. when I run
quasar dev -m electron, can I get both an electron UI + a port that I can type into a browser to bring up the same UI.
My project is a node application, in which we are trying to use quasar as our UI framework. Our usecase is that this application is hosted locally on a user’s computer, and we want it to be accessible from both the browser and the electron app simultaneously, and without bringing up another process?
So far, I have been able to develop an example where we create a headless version of the application electron app w/ the
quasar dev -m electroncli, and then call
quasar dev -m spaagain to bring up a UI that can connect to the app, but that faces issues with
corsheaders and so on.
s.molinari last edited by
when I run quasar dev -m electron, can I get both an electron UI + a port that I can type into a browser to bring up the same UI.
No. This isn’t possible. However, if you build out your app as an electron app and an SPA, that should be possible for the user to use both ways. Remember
devis only the development environment. It’s not what you give the user.