Barcoded intends to provide a simple API for the generation of barcodes in multiple symbologies.
Because we know how awesome you are, we've provided you options for running Barcoded:
-
Install the required software dependencies if you have not already:
-
Ruby 2.0+
-
ImageMagick 6.8+
-
-
At the command prompt, clone the project:
git clone [email protected]/UtensilsUnion/barcoded
-
Change directory to
barcoded
and install our gems:bundle install
-
At last we are ready to get this show on the road:
bundle exec rackup
-
Install required dependencies on your host:
- Docker 0.9+
-
Run the following command from your host's terminal:
docker run -p 0.0.0.0:8080:8080 utensilsunion/barcoded
-
Access the service at:
http://yourhost:9000/
-
Barcode!
Configuration
The following options are available for use with the container:
-
RACK_ENV (default: production)
-
RACK_CORS (default: disabled)
-
UNICORN_WORKERS (default: 1)
-
UNICORN_TIMEOUT (default: 30)
To run the application with 4 Unicorn workers:
docker run -P -e UNICORN_WORKERS=4 utensilsunion/barcoded
- Bookland
- Code 128
- Code 25 Interleaved 2 of 5
- Code 25 Non-interleaved 2 of 5
- Code 39
- Code 93
- EAN-13
- EAN-8
- IATA
- QR Code
- UPC-A
- UPC/EAN Supplemental 2
- UPC/EAN Supplemental 5
- PNG
- GIF
- JPG
- SVG
Download a code128 barcode as a jpeg with the value of 12345ABC
curl -O http://localhost:8080/img/code128/1235ABC.jpg
Download a QR Code as a png with the value of BarcodedRocks, specifying a hight and width of 800x800.
curl -o BarcodedRocks.png \
"http://localhost:8080/img/qr/BarcodedRocks.png?height=800&width=800"
Businesses need barcodes and adding support to legacy systems for new symbologies can be non-trival, enter Barcoded. Leveraging our simple API, businesses can generate barcodes in multiple symbologies on-demand without ever making a code change.
To see Barcoded in action check out the project page.
-
As simple as:
bundle exec rspec
Feedback and features welcome! Please make use of Issues and Pull Requests, all code must have accompanying specs.
Barcoded is written and maintained by @doomspork.
The project is made available under the MIT License.