Follow

Do you have samples for the Web SDK and how can I run them?

To use our samples shipped with the SDK, you first need to install our SDK and http-server npm package (with npm or yarn commands):

  • With npm commands:
    // download the web sdk
    > npm install scandit-sdk --save
    // install globally the http-server package

    > npm install http-server -g
  • With yarn commands:
    // download the web sdk
    > yarn add scandit-sdk
    // install globally the http-server package

    > yarn global add http-server

Next, you can simply go to the samples directory and run the installed package:

// go to the samples directory
> cd node_modules/scandit-sdk
// run the new package
http-server

You can now open your browser and access the samples on the following URLs:

For more samples, please check out our Github repository for samples for the Web SDK:

 https://github.com/Scandit/barcodescanner-sdk-for-web-samples.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request