Scan is the frontend for SANE built with golang and svelte.
Features:
- List connected scanners.
- Configure the selected scanner.
- Scan image from the selected scanner.
Install libsane-dev, e.g. for Ubuntu:
sudo apt install -y libsane-devBuild and run service:
go build -o scan ./cmd/scan
LISTEN=0.0.0.0:8085 ./scanBuild Svelte frontend with node and npm:
cd web
npm install
npm run buildInclude fronend into the binary:
cd cmd/scan
go run github.com/gobuffalo/packr/packrNow build the service:
go build -o scan ./cmd/scanOpen dll.conf file and uncomment #test line.
For Ubuntu/Debian:
/etc/sane.d/dll.conf
For Mac OS X:
/usr/local/etc/sane.d/dll.conf
DEBUGenables debug log level and text format for logs.LISTENis the interface to listen for.