Skip to content

Latest commit

 

History

History

desktop-electron

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Native Desktop Barcode Reader

The sample demonstrates how to create a native desktop barcode reader based on Electron.

A basic Electron application needs just these files:

  • index.htm - A web page to render.
  • main.js - Starts the app and creates a browser window to render HTML.
  • package.json - Points to the app's main file and lists its details and dependencies.

Getting Started

  1. Rebuild dbr.node/dbr.so:

    # check electron version
    electron –v
    # rebuild the native node module
    node-gyp rebuild --target=0.36.7 --arch=x64 --dist-url=https://atom.io/download/atom-shell
    
  2. Install dependencies:

    npm install
    
  3. Start the application:

    npm start
    

Learn more about Electron and its API in the documentation.

Blog

How to Build Cross-platform Desktop Barcode App with Electron