No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Hosting UI in electron and browser simultaneously

    Help
    2
    2
    75
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      thtran last edited by

      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.

      Context:

      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 electron cli, and then call quasar dev -m spa again to bring up a UI that can connect to the app, but that faces issues with cors headers and so on.

      1 Reply Last reply Reply Quote 0
      • s.molinari
        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 dev is only the development environment. It’s not what you give the user. 🙂

        Scott

        1 Reply Last reply Reply Quote 2
        • First post
          Last post