"scripts": {
"client-install": "npm install --prefix client",
"start": "node server.js",
"server": "nodemon server.js",
"client": "npm run dev --prefix client",
"dev": "concurrently \"npm run server\" \"npm run client\""
},
- npm run server will both npm run server and npm run client
- --prefix flag prefixes the command that is ran, ex: npm run dev --prefix client is equivalent to cd client && npm run dev.
- concurrently: Run commands concurrently