Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1019 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 1019 Bytes

QRCody - QRCode Microservice

QRCody is a very small Sinatra application that provides on-the-fly QR Code generation with built-in caching. I needed an alternative to Google's depracated and soon to be gone Infographics API so I decided to write my own.

Running the app

The application can be run directly from within the app directory using thin (included in Gemfile)

thin start

Once running, you can generate QR codes by visiting http://localhost:3000/qr and supplying a label parameter. For example http://localhost:3000/qr?label=https://github.com/bjedrocha

Rack::Cache is used to cache generated versions of QR codes. These cached files and metadata are stored in the tmp/ directory and will get regenerated as necessary.

License

Copyright (c) 2015 Bart Jedrocha, released under the MIT License.