Table of сontents

  1. About
  2. CDN sample
  3. Webpack sample
  4. React typescript
  5. Angular sample
  6. SDK sample
  7. API sample
  8. Nuxt sample
  9. Controller sample
  10. CodePen samples

About

This repository contains examples of using @regulaforensics/vp-frontend-document-components.

CDN sample

The cdn/<component-name>.html folder contains an example of using the component when connecting a package via a cdn link.

Webpack sample

The webpack/<component-name> folder contains an example of using components with Webpack.

Example installation

Clone this repository then go to the webpack/<component-name> folder and install the dependencies:

npm i

Build a project:

npm run build

The project files will be located in the build folder.

Development mode:

npm run serve

React typescript

The react-ts/<component-name> folder contains an example of using a component with React and Typescript.

Example installation

Follow the steps as in Webpack sample.

Angular sample

The angular/<component-name> folder contains an example of using a component with Angular.

Example installation

Follow the steps as in Webpack sample.

SDK sample

The sdk folder contains an example of using the SDK to develop your own interface.

Example installation

Clone this repository then go to the sdk folder and install the dependencies:

npm i

Open index.html.

API sample

The api folder contains an example of using Document reader component with API.

Example installation

Follow the steps as in Webpack sample.

Nuxt sample

The nuxt folder contains an example of using Document reader component with Nuxt.

Example installation

Follow the steps as in Webpack sample.

Controller sample

The controller folder contains an example of using the SDK to work with Regula Document Reader Web Service.

CodePen samples

Camera snapshot component

https://codepen.io/regulaforensics/pen/xxLjXBJ

Document reader component

https://codepen.io/regulaforensics/pen/KKvRypq