DEV Community

Learning Javascript, barcode scanning and wiggling into private grocery store APIs

Mark Townsend on April 06, 2019

I've been a backend web developer for several years now. Swimming in the waters of databases, object oriented programming, and beautiful frameworks...
Collapse
 
troywolf profile image
Troy Wolf

Nice work, Mark! So has HEB shutdown your access to that private API yet? 😎️

Like you, I found QuaggaJS to be grossly out of date, but was able to get it working...almost. It open the camera, I can see the video, but it doesn't do anything with barcodes. From your demo video, it appears the detection and decoding is automatic--once the barcode is in the view, it just finds it and decodes it--firing Quagga's onDetected() handler. Right?

My onDetected is never firing and no errors in console.

Thanks for sharing you work! ☕️

Collapse
 
devnamednick profile image
Nick Kaufmann

I love reading solutions like this. Makes me remember why I started. Great job!

Collapse
 
vikramchandra profile image
Vikram Sharma

Wow! This is so naughty :) Great work. Here is a list of barcode apis one can use in place of QuaggaJS.

Collapse
 
mtownsend5512 profile image
Mark Townsend

Thanks for sharing this!

Collapse
 
edwardinchains profile image
edwardinchains

Nice - was thinking of making a little app like this and stumbled across this article. Is your source code for this available? Would be a great reference point if it was!