menu
techminis

A naukri.com initiative

google-web-stories
source image

Dev

2w

read

379

img
dot

Image Credit: Dev

Always on Reactjs Application.

  • This post explains how to serve a local ReactJS project on a computer and make it available automatically after system boot for demos or shared development environments.
  • Install 'serve' globally using 'npm i -g serve' and note the path using 'which serve'.
  • Create a shell script named 'always-on-reactjs-application-script.sh' to navigate to the project directory and serve the build folder on port 8080.
  • Create a systemd service to run the script at boot to enable and start the service. Share your local IP address with team members to access the React app over Wi-Fi.

Read Full Article

like

22 Likes

For uninterrupted reading, download the app