Skip to content

vial0ft/payment-barcode-recognizer

Repository files navigation

payment-barcode-recognizer

Web service recognizing barcode of payment receipt. It works fine with linear barcodes and QR-codes.

Barcodes recognize according information in the file resources/companies-schemas.edn. It's possible to add new schemas and describe how to recognize some barcode by some trait (e.g. the name of the company) and also describe parsing-schema in the case of linear barcode. Specific of payment receipt recognizing is that the receipt have to contain account, bill-id and amount.

Swagger

Swagger is available by endpoint /api/swagger-ui

Dependensies

Server

Frontend

Build

As a standalone application clojure -Sforce -T:build all

Production environment variables:

PORT - by default 3000

HTTP_HOST - by default 0.0.0.0

Docker

For run as a docker container you have to set environment valiable JDBC_URL which is url to postgreSQL DB e.g:

jdbc:postgresql://<db-host>:<db-port>/<db-name>?user=<user>&password=<password>

For more details look into Dockerfile

P.S.

That is naive implementation my previous java project with clojure. And it defenetly is !NOT READY FOR PRODUCTION USAGE! Unlike the previous desktop version, recognizing is a clojure web services with clojurescript and Reagent on a frontend.

About

Web service recognizing barcode of payment receipt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published