How to Implement (Apps Regsitrations) to a nuxt application during Runtime

I'm building a SaaS. Each user will have a list of available apps "built internally in the codebase.", and can activate or deactivate each app. Each app will contain pages, stores, and composables, effectively serving as "a module". Then, after activation, the app should be installed and available with all of its components, pages, styles, etc... I know that I can achieve the app functionality using a nuxt module. But the modules are registered during Build Time. Can I register the module in Runtime? if no, how can I achieve this scenario ? I'm not looking for a code, I'm just asking for a direction, where to search , or what methodology should I implement
4 Replies
Attacler/Bart
Attacler/Bart9mo ago
what is the defenition of an app? right now it sounds alot like its a seperate nuxt project or something. anyway, most people make generic pages with parameters inside of the url or something like that. based on that you can query/show certain data
KareemDabbeet
KareemDabbeetOP9mo ago
Let's say it's like a WordPress plugins ( a set of pages and functionalities that will be added to your current project )
Single
Single9mo ago
I would assume that you ship the complete frontend with all the "apps" (aka modules) and you add an application level check whether the client is allowed to see/use them or not.
manniL
manniL9mo ago
^that's the way to go. Be aware that they are all "readable" though. The API has to deliver the content and do proper auth, otherwise it isn't secure
Want results from more Discord servers?
Add your server