Simple Express + Pug app to test the OneSDK
npm install
- Adjust the
.example.env
file to.env
and populate enc variables - generate or provide self signed certificates (
cert.pem
andkey.pem
files) npm run start
This uses node v20.
Biometrics and OCR are meant to be performed on mobile devices.
On a Mac, there are two steps to be able to run this locally on your phone:
- Add your phone's ip to
/etc/hosts
127.0.0.1 <yourPhoneIp>
- Get your mac ip and set in your phone browser (both connected to the same network)
ifconfig | grep "inet " | grep -v 127.0.0.1
With the IP and the port in use for the node app load this on your phone (https) and you should see the app running.
docker compose up --build