Reputation: 845
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
Reputation: 110
Two Things before you share your IP and PORT:
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.
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
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