https://github.com/veryfi/veryfi-lens-web-demo-express
Veryfi Lens for Web SDK Demo
https://github.com/veryfi/veryfi-lens-web-demo-express
Last synced: 3 months ago
JSON representation
Veryfi Lens for Web SDK Demo
- Host: GitHub
- URL: https://github.com/veryfi/veryfi-lens-web-demo-express
- Owner: veryfi
- Created: 2023-01-21T01:25:40.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-14T15:12:05.000Z (almost 2 years ago)
- Last Synced: 2025-04-08T04:33:41.612Z (6 months ago)
- Language: JavaScript
- Size: 3.93 MB
- Stars: 2
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
[](https://opensource.org/licenses/MIT)
# Veryfi Lens for Web SDK 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.
The server side is a simple Node.js's Express server. To get started, first make sure you have a valid credentials in `server.js`:
```
const CLIENT_ID = "YOUR_CLIENT_ID_HERE"; // make sure to keep them as a secret
const CLIENT_SECRET = "YOUR_CLIENT_SECRET_HERE";
const API_KEY = "YOUR_API_KEY";
const USERNAME = "YOUR_USERNAME";
```Install dependencies:
```
npm install
```To start the backend server on port 5001:
```
npm start
```To start the front-end server on port 8080:
```
node src/http-server.js
```To change classes run:
```
npx tailwindcss -i ./src/input.css -o ./src/output.css --watch
```