You would need to run npm start for both locally. It works in production as well, I'll add a section on deployment tonight.
For running locally from your ./client folder, you can modify your package.json script to start both at the same time:
"start": "node ../index.js | react-scripts start",
And when you C to terminate batch job, it will terminate both front and back localhosts.
Thanks. I would guess you would want to compile the code in the client folder so yeah, would love to read about that process
I've added a short section, I hope that everything is clear
Yes this makes sense. Your creating a Node Heroku setup and it will run that. Thanks
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.