MERN stack dev notes: Feb 2025
Last updated on 18 Feb. 2025 To kill earlier instance of node server if new node server instance fails due to port not being free, in PowerShell (also for React app server): Get-Process -Id (Get-NetTCPConnection -LocalPort 4000).OwningProcess Id is the process Id. Task Manager can be used to safely kill the process (command line option is there but perhaps prone to typo risk) Ref: How do I find out which process is listening on a TCP or UDP port on Windows? [closed], https://stackoverflow.com/questions/48198/how-do-i-find-out-which-process-is-listening-on-a-tcp-or-udp-port-on-windows ... Run React and Node on single Port | by Musab Abbasi | Medium, https://abbasimusab2000.medium.com/setting-up-mern-website-on-single-port-for-deployment-4ab4ada8fe4d , Oct. 2022 Different ways to connect react frontend and node backend - DEV Community, https://itsrakesh.com/blog/different-ways-to-connect-react-frontend-and-node-backend-1pik , Nov. 2021 ... [Around 15 Feb. 2025:] Restar...