https://github.com/dynamsoft/barcode-reader-javascript-demo
https://github.com/dynamsoft/barcode-reader-javascript-demo
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dynamsoft/barcode-reader-javascript-demo
- Owner: Dynamsoft
- Created: 2021-09-06T07:58:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-20T22:40:36.000Z (over 1 year ago)
- Last Synced: 2024-12-28T03:41:57.124Z (about 1 year ago)
- Language: Vue
- Size: 1.09 MB
- Stars: 24
- Watchers: 5
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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, you can find a simple Vue sample at https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/vue
If you would like to get this demo project running, you can follow the steps below:
## Try the project
1. Set up
```cmd
npm install
```
or
```cmd
yarn install
```
2. Add license
> If you don't have a license yet, you can request a 30-day free trial using the following link: [Request a Trial License](https://www.dynamsoft.com/customer/license/trialLicense?ver=10.4.2001&utm_source=demoReadMe&product=dbr&package=js).
>
> Alternatively, you can skip this step and still test the demo for up to 24 hours without a license.
Open "src/dynamsoft.config.ts" and input your license key in this line:
```js
LicenseManager.initLicense("YOUR_LICENSE_KEY_HERE");
```
3. Run
For development:
```cmd
npm run dev
```
or
```cmd
yarn dev
```
For production:
```cmd
npm run build
```
or
```cmd
yarn build
```
## Contact Us
If you have any questions with these samples, feel free to submit an issue or [contact us](https://www.dynamsoft.com/company/contact/).