Install nodejs: curl -sL https://deb.nodesource.com/setup_12 | sudo bash -
sudo apt-get install -y nodejs`
Make sure eog is installed on client:
sudo apt-get install eog
Update the ip address in the client code so it points to the server. Spin up server after loading the images folder. Spin up the client
To use webcam install:
sudo apt-get install fswebcam
fswebcam -r 1280x720 --no-banner image.jpg
to take a pic