Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Web application C++ server and React JS face
QtWS25 Last Chance

Web application C++ server and React JS face

Scheduled Pinned Locked Moved Unsolved Brainstorm
10 Posts 5 Posters 6.2k Views
  • 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.
  • K Offline
    K Offline
    Kofr
    wrote on last edited by
    #1

    Hi, I have a http serber written with C++ and I want to work with it with single web-page application. Is React js suitable for this purpose or what solution suits best?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Why not just test it out? if easy and fast to get up and running, that could give it +1 in terms of being suited for
      a 1 page web app. :)

      K 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Why not just test it out? if easy and fast to get up and running, that could give it +1 in terms of being suited for
        a 1 page web app. :)

        K Offline
        K Offline
        Kofr
        wrote on last edited by
        #3

        @mrjj becasuse I am not a web app developer and I want to be sure if i look fook for a web app developer

        mrjjM 1 Reply Last reply
        0
        • K Kofr

          @mrjj becasuse I am not a web app developer and I want to be sure if i look fook for a web app developer

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Kofr
          ok fair enough. Maybe you get lucky and somebody knows React js.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            It depends on what you need to do with your application. It might be overkill to put in place.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            K 1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              It depends on what you need to do with your application. It might be overkill to put in place.

              K Offline
              K Offline
              Kofr
              wrote on last edited by
              #6

              @SGaist what wxactly do you mean? )
              I need the web face which takes data from server.
              In my case this is data from database hwhich is to be processed by web faced and saved back + realtime collaboration.

              1 Reply Last reply
              0
              • K Offline
                K Offline
                Kofr
                wrote on last edited by
                #7

                Majority of the asked say that they do not recommentd to use C++ as http server. But I do not understand why?
                What better features have Node or Go or other frameworks which C++ liibs do not have ( I say about Poco, facebook proxygen, Qt)?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Likely because most of the web sites are powered either by apache2 or nginx or a combination of both which are pretty well established for that kind of task. The new kid on the block being node.js.

                  The questions you should ask yourselves is:

                  • What do you want to show to your users ? (table, basic editor etc.)
                  • How do you want to manipulate your data ?

                  There are currently several frameworks that could be used from basics to pretty complex and advanced.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  2
                  • p3c0P Offline
                    p3c0P Offline
                    p3c0
                    Moderators
                    wrote on last edited by
                    #9

                    @Kofr One of the C++ based web dev. framework explains:
                    http://cppcms.com/wikipp/en/page/when_to_use_cppcms
                    http://cppcms.com/wikipp/en/page/main

                    157

                    1 Reply Last reply
                    3
                    • tekojoT Offline
                      tekojoT Offline
                      tekojo
                      wrote on last edited by
                      #10

                      (I'm not a web developer, but work with them, so take this as an opinion, not proper advice)

                      The realtime collaboration you mention probably requires running javascript on the browser. It probably also means running things with web sockets.
                      Socket libraries exist for a wide variety of platforms (Qt has them too), but as the frontend needs javascript, it might be easiest to use the same language all around.

                      On the other hand, if you already have a web server in C++, extending that with web sockets shouldn't be too hard with a suitable library. That just leaves the browser end.

                      So it comes down to the usual two questions:

                      • What language do you want to do this in (especially if it is not work, where you might have the language selected for you)
                      • Are you happy supporting your selection for the lifetime of the project
                      1 Reply Last reply
                      4

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved