spejstore-labelmaker/README.md

22 lines
475 B
Markdown
Raw Normal View History

2020-05-20 21:55:44 +00:00
# spejstore-labelmaker
```sh
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
2024-01-30 14:02:50 +00:00
to test without spejstore running locally, pass:
```sh
2024-01-30 17:14:09 +00:00
LABELMAKER_DEBUG_JSON='{"short_id":"abcdef","name":"Some long test item","owner":"testowner"}' bundle exec ruby main.rb
2024-01-30 14:02:50 +00:00
```
2024-01-30 17:14:09 +00:00