This repository contains examples of using @regulaforensics/vp-frontend-face-components.
The cdn
folder contains an example of using the component when connecting a package via a cdn link.
Connect the package to your .html
file using the CDN link: unpkg.com/:package@:version/:file
<!-- Replace <VERSION> with the package version -->
<script src="https://unpkg.com/@regulaforensics/vp-frontend-face-components@<VERSION>/dist/main.iife.js"></script>
Add the name of the component tag to the html code.
The webpack
folder contains an example of using components with Webpack.
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
The react-ts/<component-name>
folder contains an example of using a component with react and typescript.
Follow the steps as in Webpack sample.
The angular/<component-name>
folder contains an example of using a component with Angular.
Follow the steps as in Webpack sample.