You would need to run npm start for both locally. It works in production as well, I'll add a section on deployment tonight.
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
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.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You would need to run npm start for both locally. It works in production as well, I'll add a section on deployment tonight.
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
For running locally from your ./client folder, you can modify your package.json script to start both at the same time:
And when you C to terminate batch job, it will terminate both front and back localhosts.