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

    quasar dev - how to start additional background server?

    CLI
    2
    4
    711
    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.
    • s-light
      s-light last edited by

      hello community,
      in my quasar project i need a backend server for some development simulation purposes.
      what is the simplest way to also just start this in background with using the quasar dev command?
      currently i have to open a second cmd and start the server with yarn start and would like to automate this 🙂

      sunny greetings
      stefan

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @s-light last edited by

        @s-light

        I start Quasar and my backend using npm scripts defined in package.json. These scripts call quasar dev and start the backend. You could run multiple commands parallel in 1 script. I won’t do that myself btw , it will mess up your output console.

        See here how to run a npm script parallel:
        https://stackoverflow.com/questions/30950032/how-can-i-run-multiple-npm-scripts-in-parallel

        s-light 1 Reply Last reply Reply Quote 0
        • s-light
          s-light last edited by

          for now i use
          yarn start and have configured the script with the help of concurrently:

          "start": "concurrently --kill-others --raw \"node ./server/index.js\" \"quasar dev\" "
          
          1 Reply Last reply Reply Quote 0
          • s-light
            s-light @dobbel last edited by

            @dobbel thanks!!
            yes the output is mixed up…
            but my backend server is very simple and only mentions ones that it is running…
            for this easy thing its working fine 🙂

            thank you!!

            sunny greetings
            stefan

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