barcode-scanner

Overview

This is a bare-bones app for a very specific use case.

This app pulls a mapping of barcodes to another value from a published Google Sheet. When using the barcode scanner, if your barcode is in the Google Sheet mapping, the value associated with it is returned.

The barcode scanner utilizes QuaggaJS, and supports the following types of barcodes:

  • Code 128
  • EAN
  • EAN-8
  • Code 39
  • Code 39 (VIN)
  • Codabar
  • UPC
  • UPC-E
  • Interleaved 2of5

Usage

  • Create a Google Spreadsheet with your barcodes and associated values, and publish it. (Doing so makes the spreadsheet public, DO NOT USE THIS WITH SENSITIVE DATA)

  • Update the Barcode Map URL here

  • Click Start Scanning

  • Allow usage of your device's camera

  • Center your barcode within the viewport for the scanner to read

or

  • Click Show Barcode Map to view all barcodes and their associates values that are available in the Google Sheet

Development

  • You will need a device with a camera to test on
  • Node and npm

Start the app with:

cd app/
npm i
npm start