Dynamsoft Barcode Reader JavaScript Edition Demo

This repository contains the source code for the demo of Dynamsoft Barcode Reader JavaScript Edition (DBRJS). You can try the demo from this link: https://demo.dynamsoft.com/barcode-reader-js/.

NOTE

A big part of the source code is dedicated to making a better UI or creating better user experience for demoing purposes, which might be distracting if you intend to learn about the SDK and its basic usage.

We recommend that you instead try the samples in the DBRJS samples repository https://github.com/Dynamsoft/barcode-reader-javascript-samples.

The demo itself is based on Vue 2, you can find a simple Vue 2 sample at https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/1.hello-world/5.read-video-vue

If you would like to get this demo project running, you can follow the steps below:

Try the project

  1. Set up

    npm install

    or

    yarn install
  2. Add license

    If you don't have a license yet, you can skip this step. You will still be able to test the demo for up to 24 hours.

    Open "src/dbr.js" and input your DBR license key in this line:

    BarcodeReader.license = "YOUR-LICENSE-KEY";

    Open "src/dcp.js" and input your DCP license key in this line:

    If you don't need to read driver licenses, you can skip this step.

    CodeParser.license = "YOUR-LICENSE-KEY";
  3. Run

    For development:

    npm run serve

    or

    yarn serve

    For production:

    npm run build

    or

    yarn build

Contact Us

If you have any questions with these samples, feel free to submit an issue or contact us.