The index.php contains all you need to know. A linux package called fswebcam is used for capturing webcam images. There's also a Node.JS example if you don't want to use PHP.
git clone https://github.com/experimental-platform/example-php-webcam.git
cd example-php-webcam
git remote add platform ssh://dokku@your-box.local:8022/example-php-webcam
git push platform master