The node.js code has only a few lines and is easy to understand. It uses fswebcam to capture images. There's also a PHP example if you don't want to use node.js.
- A machine that runs Experimental Platform
- A webcam, we used this
git clone https://github.com/experimental-platform/example-nodejs-webcam.git
cd example-nodejs-webcam
git remote add platform ssh://dokku@your-box.local:8022/example-nodejs-webcam
git push platform master