2020-05-20 21:55:44 +00:00
|
|
|
# spejstore-labelmaker
|
|
|
|
|
|
|
|
```sh
|
|
|
|
bundle install
|
|
|
|
bundle exec ruby main.rb
|
|
|
|
```
|
|
|
|
|
|
|
|
try it out:
|
|
|
|
|
2024-01-30 23:04:55 +00:00
|
|
|
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
|
2024-01-30 17:14:09 +00:00
|
|
|
|
2024-01-30 19:20:21 +00:00
|
|
|
Make sure to pass either `LABELMAKER_LOCAL_PRINTER_NAME` or `LABELMAKER_IPP_PRINTER_URL`. See top of `main.rb` for all env variables available.
|