murmansk
murmansk

Reputation: 845

Deploy React website with node.js backend

I have developed website in react and node.js as intermediary to send and receive response. Now i want to put this on a machine in lab , so everyone can access it. Can i Install node on machine in lab and run same setup as on my dev machine and give ip of that server?

I tried searching deployment with node js an react, but everyone using AWS, or some external server after npm build. How do I deploy my react app on lab machine with out actually copying code?

Upvotes: 0

Views: 105

Answers (2)

Christy George
Christy George

Reputation: 110

Two Things before you share your IP and PORT:

  1. Have a process monitor setup in your lab machine, Check out pm2. This will help you run your application in the background, monitor your application and start your application after restart.

  2. Enable port in your firewall for everyone to use. if your lab system is Ubuntu then allow ufw for the port.

Now you can share your IP:PORT and everyone would be able to access it, provided they all are connected to the same network.

Upvotes: 1

Hayk Aghabekyan
Hayk Aghabekyan

Reputation: 1087

If you want everybody access your server, you can share your private IP with them, so others can access it using

yourip:port

Upvotes: 0

Related Questions