2D Barcode scanning at vaadin 8 mobile app

hi there.

im just finished some mobile web app which based on vaadin 8( without touchkit )

when after finished development my boss request adding barcode scan function.

i was searched many threads, articles…

but i couldnt found out the solution.

is there any solutions for barcode scanning in mobile web app?

i guess that the cordova or some javascript module can help me

but i dont know how to use both of them.

so.
is someone tell me how can i integrate my developed app with cordova?

or

how can i handle mobile camera by using javascript?