Skip to content
This repository was archived by the owner on May 18, 2021. It is now read-only.

jyunderwood/Barfly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Barfly

Verify barcodes as a service.

A Spring Boot application that uses the ZXing library for decoding barcodes from images.

Up and running

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

Using

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.

Deploying

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.

About

A Spring Boot app using ZXing to decode barcodes as a service

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors