You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hello-world/electron/README.md
+96-75Lines changed: 96 additions & 75 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
# Hello World Sample for Electron
2
2
3
-
[Electron](https://www.electronjs.org/) is a framework for creating native applications with web technologies. Follow this guide to learn how to implement Dynamsoft Barcode Reader JavaScript SDK (hereafter called "the library") into an Electron application.
3
+
[Electron](https://www.electronjs.org/) is a framework for creating native applications with web technologies. Follow this guide to learn how to implement [Dynamsoft Barcode Reader JavaScript SDK](https://www.dynamsoft.com/barcode-reader/sdk-javascript/) (hereafter called "the library") into a Next.js application. Note that in this sample, `TypeScript` is used.
4
+
5
+
In this guide, we will be using [`dynamsoft-barcode-reader-bundle 10.2.1000`](https://www.npmjs.com/package/dynamsoft-barcode-reader-bundle/v/10.2.1000).
6
+
7
+
> Note:
8
+
>
9
+
> If you’re looking to integrate DBR-JS into a framework that we don't yet have a sample, don't worry! We have a [comprehensive guide](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/use-in-framework.html) that provides detailed instruction and best practices for a seamless integration into any frameworks!
10
+
>
11
+
> Additionally, we're here to help! Please don't hesitate to [contact us](#Support) for any support or questions you might have.
4
12
5
13
## Official Sample
6
14
@@ -10,7 +18,23 @@
10
18
11
19
Make sure you have [node](https://nodejs.org/) installed. `node 16.20.1` and `electron 26.4.1` are used in this article.
12
20
13
-
## Initialize project
21
+
## Quick Start
22
+
23
+
```cmd
24
+
npm install
25
+
npm start
26
+
```
27
+
A window should open to view the sample application
28
+
29
+
## Creating the sample project
30
+
31
+
In this section, we will be creating an Electron application utilizing the Dynamsoft Barcode Reader bundle sdk.
32
+
33
+
We'll be exploring how you could create a page that not only enables barcode scanning via a webcam or a built-in camera, but also decode barcodes from local images.
34
+
35
+
By the end of this guide, you'll have a good understanding of the SDK and be ready to discover more ways to use it!
36
+
37
+
### Initialize project
14
38
15
39
```cmd
16
40
mkdir my-app && cd my-app
@@ -19,27 +43,25 @@ npm init
19
43
20
44
`npm init` will prompt you to configure some fields in your `package.json`. Note that the `entry point` should be `main.js` (it will be created later).
21
45
22
-
##install necessary libraries
46
+
### Install the necessary libraries
23
47
24
48
```cmd
25
49
npm install electron --save-dev
26
-
npm install dynamsoft-capture-vision-std
27
-
npm install dynamsoft-image-processing
28
-
npm install dynamsoft-core
29
-
npm install dynamsoft-license
30
-
npm install dynamsoft-utility
31
-
npm install dynamsoft-barcode-reader
32
-
npm install dynamsoft-capture-vision-router
33
-
npm install dynamsoft-camera-enhancer
50
+
npm install dynamsoft-capture-vision-std -E
51
+
npm install dynamsoft-image-processing -E
52
+
npm install dynamsoft-barcode-reader-bundle -E
34
53
```
35
54
36
55
## Start to implement
37
56
38
57
### Create a main.js file
39
58
40
-
As defined in the `package.json` file, `main.js` is the entry point of the application, we define it like this:
59
+
As defined in the `package.json` file, `main.js` is the entry point of the application.
60
+
61
+
Create a `main.js` file at the root folder, and define it like this:
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
0 commit comments