This is particularly interesting if you own a physical server that you can not always acces (at a friend place, not home...) but you still want to be able to start and stop. This is also usfull for shared servers used for development purposes.
Warning : this interface is NOT secured, anyone can start your client at anytime
The project has a client and a server side.
The server side is the side that should be accesed 24/7, it allows to make requestes to start the client.
The client side is installed only is you wish to shut down or restart the client. If you only wish to start the client, only the server side is needed.
Notmal installation, here we use pm2 to start the node process on startup.
- Clone this repo on the server and the client
$ git clone https://github.com/Mrgove10/iowebinterface/
- Modify the
conf.js
file whit the nedded information.- The server side should be set to
role: "server"
- The client side should be set to
role: "client"
- The server side should be set to
- Start the process whit pm2
$ pm2 start main.js
- Set pm2 to start whit the machine
$ pm2 startup
- Save the process list to autostart
$ pm2 save
- Navigate to you server adress http://[adress]:1234/
- You should now be able to start and stop the server.
You cna also manualy start both sides :
$ node client/client.js
$ node server/server.js
You can change the html page as you wish to change the server name or the Iframe for your management interface.