An open API service indexing awesome lists of open source software.

https://github.com/veryfi/veryfi-lens-web-demo-svelte


https://github.com/veryfi/veryfi-lens-web-demo-svelte

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          


[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)

# Veryfi Lens for Web SDK Svelte Demo

Veryfi Lens for Web SDK is a framework for your web app to give it document capture superpowers in minutes.

This project is a demo to showcase how you can integrate Lens into your web app. It follows a client-server architecture where the server is for validating your client and getting session key and the client side is for displaying and showing Lens components for capturing documents.

Set your CLIENT_ID in `services/session.service.ts` and in routes like `receipt/+page.svelte`

```
const CLIENT_ID = "YOUR_CLIENT_ID"; // make sure to keep it as a secret
```

Install dependencies:
```
npm install
```

Build the app:
```
npm run build
```

Start the app:
```
node server.cjs
```