Run our Sample Apps
The best way to start working with the Scandit Data Capture SDK is to run one of our sample apps. In this guide we will go through the available apps and how to run them.
Available Samples
We have created simple samples that show you how use various features of the Scandit Data Capture SDK.
Here’s a list of our available samples on the Web:
Run the Samples
Before you can run a sample app, you need to go through a few simple steps:
Set the license key. To do this, sign in to your Scandit account and find your license key at ssl.scandit.com/dashboard/sign-in.
Once you have the license key, add it to the sample that you’d like to run:
await SDCCore.configure({ licenseKey: "-- ENTER YOUR SCANDIT LICENSE KEY HERE --", ... });
Install the dependencies:
npm install
Build the sample:
npm run build
Serve the sample:
npm run serve
Open http://localhost:8888 with your browser.
You can use an SSH tunnel to access the running sample from another device via the internet. To do so, you can install ngrok <https://ngrok.com/> and create a tunnel to the running sample.
Make sure you use the HTTPS tunnel because most of the browsers will deny permission to access the camera in non-secure contexts.
ngrok http 8888
Fully-customizable API: Single Scanning with Barcode Capture Samples
The Barcode Capture API offers developers a high level of flexibility with unlimited options for designing your own UI and workflow. You can use these samples as a starting point. We recommend that you familiarize yourself with our Best Practices for Usability to learn what to consider when using the Fully-customizable API.
Very simple example of setting up the library to scan barcodes. |
Simple example of how to integrate a barcode scanner into your application. |
Fully-customizable API: MatrixScan Samples
The Barcode Tracking API offers developers a high level of flexibility with unlimited options for designing your own UI and workflow. You can use these samples as a starting point. We recommend that you familiarize yourself with our Best Practices for Usability to learn what to consider when using the Fully-customizable API.
Very simple sample which shows how you can highlight barcodes on screen with the Scandit Data Capture SDK. |
ID Scanning and Verification Samples
A simple examples of how to integrate ID Capture into your application. |
An advanced example on how to scan different type of document with ID Capture. |
All our samples can be found in the archive that can be downloaded from our dashboard. Check the following section for more details.