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.
-
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 -
Install dependencies:
npm install -
Start the application:
npm start
Learn more about Electron and its API in the documentation.
How to Build Cross-platform Desktop Barcode App with Electron