title: Concurrently npm with React Js
body: <p>I have a project which is created using Node express and React Js. The server(Node) <code>package.json</code> as follows. It uses <a href="https://www.npmjs.com/package/concurrently" rel="nofollow noreferrer">concurrently</a> to start both server and client as once using <code>npm run dev</code>. The server uses port <code>5000</code> and the client uses port <code>3000</code> And the Folder structure as follows. </p>
  
  <pre><code>/
  |
  |-mysample
     |
     |-client
     |   |-.env
     |   |-package.json
     |   |-src
     |-server.js
     |-package.json
  </code></pre>
  
  <p><strong>package.json(mysample)</strong></p>
  
  <pre><code>{
    "name": "mysample",
    "version": "1.0.0",
    "description": "My Sample",
    "main": "server.js",
    "scripts": {
      "client-install": "npm install --prefix client",
      "start": "nodemon server.js",
      "server": "nodemon server.js",
      "client": "npm start --prefix client",
      "dev": "concurrently \"npm run server\" \"npm run client\""
    },
    "author": "test",
    "license": "ISC",
    "dependencies": {
      "bcryptjs": "^2.4.3",
      "body-parser": "^1.18.3",
      "concurrently": "^4.0.1",
      "express": "^4.16.4",
      "mongoose": "^5.3.8",
    },
    "devDependencies": {
      "nodemon": "^1.18.9"
    }
  }
  </code></pre>
  
  <p>How can I use <code>concurrently</code> npm package to start two react js projects which uses port <code>3000</code> for admin and <code>8000</code> for client.</p>
  
  <pre><code>   /
      |-ebook_admin
         |
         |-client
         |   |-.env
         |   |-package.json
         |   |-src
         |   |-public
         |   |
         |-package.json
         |-src
         |-public
         |-.env
  </code></pre>