DEV Community

Discussion on: Deploying a React app with React-Router and an Express Backend

Collapse
 
mccoyrjm profile image
Ryan McCoy

For running locally from your ./client folder, you can modify your package.json script to start both at the same time:

"scripts": {
    "start": "node ../index.js | react-scripts start",
    ...
}

And when you C to terminate batch job, it will terminate both front and back localhosts.