Label generator service for spejstore inventory management system
Find a file
2024-02-01 18:13:49 +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 add printservant support 2024-01-31 21:47:09 +01:00
Gemfile change api to take label contents instead of calling back spejstore 2024-01-31 00:04:55 +01:00
Gemfile.lock change api to take label contents instead of calling back spejstore 2024-01-31 00:04:55 +01:00
ipptool-print-job.test Clean up, envify, add IPP support 2024-01-30 18:14:09 +01:00
main.rb clean up 2024-02-01 18:13:49 +01:00
README.md add printservant support 2024-01-31 21:47:09 +01:00

spejstore-labelmaker

bundle install
bundle exec ruby main.rb

try it out:

GET http://localhost:4567/api/2/preview.pdf?id=abcdef&name=ItemName&owner=OptionalOwner POST http://localhost:4567/api/2/print?id=abcdef&name=ItemName&owner=OptionalOwner

Make sure to pass a printer env. See top of main.rb for all env variables available.