Verify barcodes as a service.
A Spring Boot application that uses the ZXing library for decoding barcodes from images.
Requires Java 8.
Have gradle installed or use the gradle wrapper.
./gradlew idea # Prep for intellij development
./gradlew build # Fetch deps and build project
./gradlew run # Boot spring
Once running, post a multipart request to the upload path:
curl -X POST \
-F "file=@test_barcode.png" \
http://localhost:8080/upload
or visit http://localhost:8080 and upload an image of a barcode via the web form.
It's pretty easy to deploy to Heroku:
- Create a Heroku application
- Add the heroku git repo as a remote
git push heroku master
Alternatively, you can build a war file with: ./gradlew war.