https://github.com/tariel-x/scan
Scan is the frontend for SANE built with golang and svelte.
https://github.com/tariel-x/scan
frontend sane sane-frontend scanner scanner-web
Last synced: about 1 month ago
JSON representation
Scan is the frontend for SANE built with golang and svelte.
- Host: GitHub
- URL: https://github.com/tariel-x/scan
- Owner: tariel-x
- Created: 2021-01-08T23:02:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-18T16:56:51.000Z (almost 4 years ago)
- Last Synced: 2025-02-15T05:25:14.650Z (8 months ago)
- Topics: frontend, sane, sane-frontend, scanner, scanner-web
- Language: Go
- Homepage:
- Size: 479 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scan
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.## Build & run
Install libsane-dev, e.g. for Ubuntu:
```shell
sudo apt install -y libsane-dev
```Build and run service:
```bash
go build -o scan ./cmd/scan
LISTEN=0.0.0.0:8085 ./scan
```### Building with frontend
Build Svelte frontend with `node` and `npm`:
```bash
cd web
npm install
npm run build
```Include fronend into the binary:
```bash
cd cmd/scan
go run github.com/gobuffalo/packr/packr
```Now build the service:
```bash
go build -o scan ./cmd/scan
```### Enabling test scanners
Open `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
```## Environment variables
- `DEBUG` enables debug log level and text format for logs.
- `LISTEN` is the interface to listen for.