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
- Host: GitHub
- URL: https://github.com/veryfi/veryfi-lens-web-demo-svelte
- Owner: veryfi
- Created: 2023-10-19T20:49:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T18:13:44.000Z (over 1 year ago)
- Last Synced: 2025-01-12T11:14:32.978Z (9 months ago)
- Language: JavaScript
- Size: 5.75 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
[](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
```