quasar dev - how to start additional background server?
-
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 thequasar dev
command?
currently i have to open a second cmd and start the server withyarn start
and would like to automate thissunny greetings
stefan -
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 -
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\" "
-
@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 finethank you!!
sunny greetings
stefan