• 8osm3rka@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      2
      ·
      edit-2
      2 months ago

      An electron app still needs to be served by a web server, even if the actual business logic is all client-side

      EDIT: Electron, not React…

      • just_another_person@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

        No? This is a client-side electron app. You’d need something to load the initial files, but that’s it. There are no server-side running parts. Even still, there’s links in the project here to load up the app right there. Each Major browser has ways to “install” such apps from there.

        • jogai_san@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 months ago

          Well, I assume there is a backend which takes care of securely connecting to the databases. That way I can connect the backend to the internal network where I can connect to the database, and without exposing the database port still use this from the browser.

          • just_another_person@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 months ago

            Huh? This is a database client. There is no backend. You point it to a database, and it connects to the database. That’s all it does.

            I’m not sure what other backend you may be referring to, but it will use whatever network your desktop is using for comms.

              • just_another_person@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                2 months ago

                Yup. This is just a straightforward client. Unfamiliar with dbgate but just looked at the docs. It’s also just a client as well. Unsure what other backend service you may have been referring to.

                • jogai_san@lemmy.worldOP
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  edit-2
                  2 months ago

                  It seems there is a misunderstanding. To be clear, this is what I mean:

                  ┌───────────────────────┐    
                  │ Browser               │    
                  └───────────────────────┘    
                       ▲                       
                       │ port 443 open         
                       │                       
                       │                       
                  ┌────┼──────────────────┐    
                  │ Proxy (traefik)       │    
                  └───────────────────────┘    
                       ▲                       
                       │                       
                       │ web port open to proxy
                       │                       
                       │                       
                  ┌────┼──────────────────┐    
                  │ DBgate (in docker)    │    
                  └───────────────────────┘    
                       ▲                       
                       │                       
                       │                       
                       │                       
                  ┌────┼──────────────────┐    
                  │ Database              │    
                  └───────────────────────┘    
                  

                  This way DBgate serves the web app to the browser, but also acts as a ‘backend’ which connects to the database. This way my databases are not exposed to the web, only the proxy is, which handles domain name routing and http traffic.