Label generator service for `spejstore` inventory management system
 
 
Go to file
radex 52f4a3a77e
bump to ruby 3 and bundler 2
2024-01-30 23:51:23 +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
.ruby-version bump to ruby 3 and bundler 2 2024-01-30 23:51:23 +01:00
Dockerfile bump to ruby 3 and bundler 2 2024-01-30 23:51:23 +01:00
Gemfile bump to ruby 3 and bundler 2 2024-01-30 23:51:23 +01:00
Gemfile.lock bump to ruby 3 and bundler 2 2024-01-30 23:51:23 +01:00
README.md dockerify 2024-01-30 20:20:21 +01:00
ipptool-print-job.test Clean up, envify, add IPP support 2024-01-30 18:14:09 +01:00
main.rb clean up old junk 2024-01-30 23:42:10 +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

Make sure to pass either LABELMAKER_LOCAL_PRINTER_NAME or LABELMAKER_IPP_PRINTER_URL. See top of main.rb for all env variables available.