This project is a super simple standalone Elixir server that responds to http call - and triggers scan command on my rasperry-pi connected to a scanning device.
The actual scannning is happening via SANE
The scanned image is then put in a consume folder on paperless-ngx instance, to be auto classified and categorised.
I wanted to build this with no dependencies needed - so decided to implement http server from scratch - as a learning opportunity also.
Run locally using mix run --no-halt
Build executable file using mix release
which will then output the relevant options for you to run this as a daemon on the target device