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

    Can quasar work in ssr mode with a non js framework like laravel graphql with sanctum?

    Help
    3
    10
    461
    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.
    • W
      wolfiton last edited by

      Hi everyone,
      I am asking before trying to build everything and lose some time on something that can’t be done.

      My concerns comes from spa applications auth package.

      https://laravel.com/docs/7.x/sanctum

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        You’d need to set up Quasar with a GraphQL client and you’d need to serve SSR mode via NodeJS.

        Scott

        1 Reply Last reply Reply Quote 0
        • W
          wolfiton last edited by

          Does quasar provide the nodejs implementation or i will have to add it myself?

          Thanks Scott so far

          1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by s.molinari

            Quasar offers a basic server with ExpressJS. So, if you aren’t needing anything fancy, it will do.

            Scott

            dobbel 1 Reply Last reply Reply Quote 0
            • dobbel
              dobbel @s.molinari last edited by

              @s-molinari said in Can quasar work in ssr mode with a non js framework like laravel graphql with sanctum?:

              fancy

              fancy like what?

              1 Reply Last reply Reply Quote 0
              • s.molinari
                s.molinari last edited by

                Fancy like some better/ high-performance server. Fastify, etc.

                Scott

                dobbel 1 Reply Last reply Reply Quote 0
                • dobbel
                  dobbel @s.molinari last edited by

                  @s-molinari Can you deploy quasar ssr apps with Fastify instead of the default ExpressJS?

                  1 Reply Last reply Reply Quote 0
                  • s.molinari
                    s.molinari last edited by

                    AFAIK, yes. But you’d need to put it all together yourself.

                    Scott

                    dobbel 1 Reply Last reply Reply Quote 0
                    • dobbel
                      dobbel @s.molinari last edited by

                      @s-molinari ah I see. You sound like it’s a lot of work. Is that correct?

                      I read here how to install fastify in existing projects:

                      https://github.com/fastify/fastify#example

                      Nest.js for example has support for it with an adapter middleware:

                      https://docs.nestjs.com/techniques/performance

                      1 Reply Last reply Reply Quote 0
                      • s.molinari
                        s.molinari last edited by s.molinari

                        It’s not too much work, if you know what you are doing. 🙂

                        And, Nest.js is used for supporting a backend. With Quasar’s SSR and building a server for it, you are supporting the front-end so you can “serve” the server rendered Quasar pages. It has nothing to do (directly) with the backend. You still need an API server (which could be the same server). Hope I’m not confusing you. 🙂

                        Scott

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