title: How to run client and server code at the same time
body: <p>I have client code which is in the client folder. I have done yarn build to create the production build.</p>
  
  <p>I also have a server which holds the API end points how do I run them concurrently using the production of the client code.</p>
  
  <p>Server Package.json:</p>
  
  <pre><code>  "scripts": {
      "client-install": "npm install --prefix client",
      "start": "node server.js",
      "server": "nodemon server.js",
      "client": "npm start --prefix client",
      "dev": "concurrently \"npm run server\" \"npm run client\"",
      "prod": "NODE_ENV=production concurrently \"npm run server\" \"npm run client\""
    },
  </code></pre>
  
  <p>server.js: </p>
  
  <pre><code>// Routes
  app.use("/api/users", users);
  
  const PORT = process.env.PORT || 5000;
  
  app.listen(PORT, () =&gt; console.log(`Server up and running on port ${PORT} !`));
  </code></pre>
  
  <p>client package.json:</p>
  
  <pre><code>  "scripts": {
      "start": "react-scripts start",
      "build": "react-scripts build",
      "test": "react-scripts test",
      "eject": "react-scripts eject"
    },
    "proxy": "http://localhost:5000",
  </code></pre>