An open API service indexing awesome lists of open source software.

https://github.com/dynamsoft/barcode-reader-electron-nodejs


https://github.com/dynamsoft/barcode-reader-electron-nodejs

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# Dynamsoft Barcode Reader with Electron

## What You Should Know
- [![](https://img.shields.io/badge/Download-Offline%20SDK-orange)](https://www.dynamsoft.com/barcode-reader/downloads)
- [![](https://img.shields.io/badge/Get-30--day%20FREE%20Trial%20License-blue)](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr)

## Introduction

Dynamsoft Barcode Reader with Electron (dbr-electron) is a cross-platform barcode reader application built with Electron.

Dynamic Barcode Reader is an 1D & 2D barcode decoding SDKs for web, desktop (Windows, macOS, Linux) and mobile (iOS, Android). It has industry-leading performance and professional technicians supports. For more details, refer [Dynamic Barcode Reader - Homepage](https://www.dynamsoft.com/Products/Dynamic-Barcode-Reader.aspx). You can get 30-day trial license to evaluate the SDK from [here](https://www.dynamsoft.com/customer/license/trialLicense).

## Environment

```
electron: 10.1.3
Dynamsoft Barcode Reader: 7.6.0
```

Besides, a **C++ compiler** (GCC or others) is required. The **node-gyp** is required.

> For developers from mainland China, try to specify the registry to taobao mirror [https://registry.npm.taobao.org](https://registry.npm.taobao.org) if encountered any slow connection issue.

## Installation

### Install packages

Run `npm install` from the project root directory. It would install all the dependencies, including electron.

### Build the Dynamsoft Barcode Reader

Linux & macOS:

```bash
cd libs/nodejs-barcode
../../node_modules/.bin/electron-rebuild
```

Windows:

```cmd
cd .\libs\nodejs-barcode
..\..\node_modules\.bin\electron-rebuild
```

## Launching

```bash
npm start
```

![Running on Windows](readme-assets/windows_running.png)

![Running on Linux](readme-assets/linux_running.png)

## Articles

[Creating A Cross-platform Electron Barcode Reader App](https://www.dynamsoft.com/codepool/?p=6807)