https://github.com/diogok/barcodeserver
API to generate barcodes: Datamatrix, QR, Code128 and others.
https://github.com/diogok/barcodeserver
barcode data-matrix qrcode
Last synced: about 1 month ago
JSON representation
API to generate barcodes: Datamatrix, QR, Code128 and others.
- Host: GitHub
- URL: https://github.com/diogok/barcodeserver
- Owner: diogok
- Created: 2016-08-12T01:39:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T10:51:33.000Z (over 2 years ago)
- Last Synced: 2025-04-09T23:51:59.926Z (about 1 month ago)
- Topics: barcode, data-matrix, qrcode
- Language: Go
- Size: 2.93 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BarCodeServer
Simple HTTP API around [https://github.com/boombuler/barcode](https://github.com/boombuler/barcode).
## Api Usage
Simply issue a get using the type of barcode desired as path and the content as queryString content and it will return a redirect to generated png.
$ curl -v http://localhost:8080/datamatrix?content=Whatever%20data
Available types:
* codabar
* code128
* code39
* ean
* datamatrix
* qr
* 2of5In case of error it will return Bad Request 400 and error in plain/text.
## Deploy
Using the binary, download from the release page and run the binary and it will bind to port 8080.
Using docker:
$ docker run -p 8080:8080 -v /tmp/barcodes:/opt/barcode/public diogok/barcodeserver
It will save generated code at public folder. You can delete generated artefacts and if requested server will regenerate.
## License
MIT , same as [https://github.com/boombuler/barcode](https://github.com/boombuler/barcode).