How do I write a script in my Parent Folder's package.json file so that when I run npm install
it installs the node modules in each folder and npm start
will go to each folder and run npm start
The Frontend and Backend folder both use npm start
to start up and I want to somehow do the same in the parent folder to simultaneously start both
This is the file structure:
ParentFolder
├── package.json . <--- npm install && npm start scripts
├── FrontEnd
│ ├── /node_modules
│ ├── package.json
│ └── index.js
├── Backend
│ ├── /node_modules
│ ├── package.json
│ ├── routes.js
│ └── server.js.js