Label generator service for `spejstore` inventory management system
 
 
Go to file
radex 794b5b501b
Clean up, envify, add IPP support
2024-01-30 18:14:09 +01:00
fonts Add missing fonts 2020-05-28 22:00:02 +02:00
.editorconfig Initial commit 2017-05-28 02:53:46 +02:00
.gitignore Initial commit 2017-05-28 02:53:46 +02:00
Gemfile Fix render after update, support new spejstore short_id lookup 2020-05-28 22:00:02 +02:00
Gemfile.lock Fix render after update, support new spejstore short_id lookup 2020-05-28 22:00:02 +02:00
README.md Clean up, envify, add IPP support 2024-01-30 18:14:09 +01:00
ipptool-print-job.test Clean up, envify, add IPP support 2024-01-30 18:14:09 +01:00
main.rb Clean up, envify, add IPP support 2024-01-30 18:14:09 +01:00

README.md

spejstore-labelmaker

bundle install
bundle exec ruby main.rb

try it out:

GET http://localhost:4567/api/1/preview/:label.png GET http://localhost:4567/api/1/preview/:label.pdf POST http://localhost:4567/api/1/print/:label

where :label is a spejstore label.id or item.short_id

to test without spejstore running locally, pass:

LABELMAKER_DEBUG_JSON='{"short_id":"abcdef","name":"Some long test item","owner":"testowner"}' bundle exec ruby main.rb