Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.07 KB

README.md

File metadata and controls

21 lines (16 loc) · 1.07 KB

Doc Scan Example

Requirements

This example requires Docker

Setup

  • Create your application in the Yoti Hub (this requires having a Yoti account)

  • Do the steps below inside the examples/doc-scan folder

  • Put your-application-pem-file.pem file inside the keys folder, as Docker requires the .pem file to reside within the same location where it's run from.

  • Copy .env.example to .env

  • Open .env file and fill in the environment variables YOTI_SDK_ID, YOTI_KEY_FILE_PATH

    • Set YOTI_KEY_FILE_PATH to ./keys/your-application-pem-file.pem
  • Install dependencies docker-compose up composer

  • Run the docker-compose up --build web command

  • Visit https://localhost:4003

  • Run the docker-compose stop command to stop the containers.

  • The default controller demonstrates how to create a Doc Scan session

  • The success controller demonstrates how to retrieve a Doc Scan session