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

    Multi part application

    Help
    3
    7
    184
    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.
    • M
      mammadataei last edited by mammadataei

      Hi, for my project I need to create 3 SPAs but their configuration is almost the same. Is it possible to create them in the same CLI project?

      ├── src/
      │ ├── spa1/
      │ │ ├── assets/
      │ │ ├── statics/
      │ │ ├── components/
      │ │ ├── …
      │ │ ├── App.vue
      │ │ └── index.template.html
      │ ├── spa2/
      │ │ ├── assets/
      │ │ ├── statics/
      │ │ ├── components/
      │ │ ├── …
      │ │ ├── App.vue
      │ │ └── index.template.html
      │ ├── spa3/
      │ │ ├── assets/
      │ │ ├── statics/
      │ │ ├── components/
      │ │ ├── …
      │ │ ├── App.vue
      │ │ └── index.template.html

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

        If you do it like this and have a security problem all 3 of your applications will be affected at the same time.

        So maybe not the best idea regarding security, what do you think @mammadataei ?

        M 1 Reply Last reply Reply Quote 0
        • qyloxe
          qyloxe last edited by

          There was a time, when I tried to have something similar. I used custom quasar configs, reverse proxies, etc and it was quite OK, but as for now, I settled with git submodules:

          https://git-scm.com/book/en/v2/Git-Tools-Submodules

          There is an excellent support for submodules in Visual Studio Code. It just works. I had to change my mind about project modularization but it also was OK in the long run.

          1 Reply Last reply Reply Quote 1
          • M
            mammadataei @wolfiton last edited by

            @wolfiton Thanks for your answer, but these 3 SPAs are just part of one application and the same code base. We just want to separate front-end to different parts for maintainability. I think using three separate projects makes lots of code redundancy.

            qyloxe 1 Reply Last reply Reply Quote 0
            • qyloxe
              qyloxe @mammadataei last edited by

              @mammadataei said in Multi part application:

              @wolfiton I think using three separate projects makes lots of code redundancy.

              There is ONE project (quasar) but THREE git subrepositories (git submodules). Additionally, because of git, you can use branches which gives additional flexibility. I understand, that only quasar conf plus filesystem dir structure, will not help.

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

                Does your app use Vuex?

                If it does then you can create components and even slots and reduce a lot of code repetition and customize on the fly.

                More info here https://vuejs.org/v2/guide/components-slots.html

                1 Reply Last reply Reply Quote 0
                • M
                  mammadataei @qyloxe last edited by

                  @qyloxe Thanks for your answer, I get the idea and it will be useful.

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