How to use concurrently module for running server and client simultaneously
-
hi everyone!
In my project i broke backend (server folder) with Express REST API on port http://localhost:3000/ and frontend (client folder) with Quasar on port http://localhost:8080/. So, i try to run both simultaneously with concurrently module.
But i have an error: ‘Unknown command “dev”’. I tried i to use ‘npm run start’ but there is no such file index.js in the client/index.js.This is a package.json in server directory:
I used this method in Angular project before and it worked perfectly.
Please tell me the right solution. Thank you -
@igor_local did you run the
npm install command before attempting to raise the application? -
@patryckx
yes, sure.
Actually my question is - where is the index.js file that running the Quasar app? -
Yes, i found the solution. If someone wants to use this module you need to run the script from the directory Client (where is Quasar), then it works properly