quasar dev - how to start additional background server?
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
currently i have to open a second cmd and start the server with
yarn startand would like to automate this
dobbel last edited by
I start Quasar and my backend using npm scripts defined in package.json. These scripts call
quasar devand 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:
for now i use
yarn startand have configured the script with the help of concurrently:
"start": "concurrently --kill-others --raw \"node ./server/index.js\" \"quasar dev\" "
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