title: How to properly setup localhost for react + api development
body: <p>I am <strong>developing</strong> app with <strong>react</strong>-redux. And I am using the quick development, which always build my client at <strong>localhost:3000</strong> </p>
  
  <p>I have my <strong>api written in php</strong>, and its on <strong>localhost:80</strong>. </p>
  
  <p>So its <strong>cross-origin, but on production its not</strong>. So I would like to develop it while being on the same domain+port. But I have no clue how to set it up. </p>
  
  <p>I am using MAMP - Apache for the php and yarn (create-react-app) for react. </p>
  
  <blockquote>
    <p>So it can't run at the same port.</p>
    
    <p>Anyone any ideas how to solve this problem?</p>
  </blockquote>
  
  <p>When I use "yarn start" I can edit my react code and its compiled upon save and I can see the edited code within seconds at the localhost:3000 </p>
  
  <p>Is it possible to "deploy" it in this "developer" mode into some folder, where I could possibly setup a server using actually MAMP ( apache ) ?</p>
  
  <p>Thanks in advance</p>