While trying to do the MERN tutorial(Travers Media), i've also been asking a few questions to my friends who do code. And it irritates my friend that i don't separate client folder and server folder. but since my plan is to run both backend and frontend at the same time with concurrently, it hasn't actually been working.
"scripts": {
"start": "node server.js",
"server": "nodemon server.js",
"client": "npm start --suffix --prefix client",
"dev": "concurrently \"npm run server\" && \"npm run client\""
},
concurrently
doesn't seem to use&&
and no idea what--suffix --prefix client
is supposed to do. Did you mean to start the server twice?In any case getting rid of the
&&
and adding an extra--
to the"client"
script works for mepackage.json
server.js