Can quasar work in ssr mode with a non js framework like laravel graphql with sanctum?
-
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
-
You’d need to set up Quasar with a GraphQL client and you’d need to serve SSR mode via NodeJS.
Scott
-
Does quasar provide the nodejs implementation or i will have to add it myself?
Thanks Scott so far
-
Quasar offers a basic server with ExpressJS. So, if you aren’t needing anything fancy, it will do.
Scott
-
@s-molinari said in Can quasar work in ssr mode with a non js framework like laravel graphql with sanctum?:
fancy
fancy like what?
-
Fancy like some better/ high-performance server. Fastify, etc.
Scott
-
@s-molinari Can you deploy quasar ssr apps with Fastify instead of the default ExpressJS?
-
AFAIK, yes. But you’d need to put it all together yourself.
Scott
-
@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:
-
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