This app is a prototype of an Attribute Provider (ATP) that collects "selfie" information.
It uses a HMPO suite of modules (HMPO App, HMPO Form Wizard, HMPO Components) to provide a mostly config based form journey.
To install dependencies run:
npm installTo build generated files run:
npm run buildTo run use:
node app.jsTo run in continuous development mode use:
nodemon app.jsapp.js- main file that constructs an Express app using HMPO-Apassets- static assets such as images and stylesheetsdata- test data for use with downstream facial identification systemslocales- i18n language files, structured as required for HMPO-Appmanifest.yml- deployment configuration for Cloud Foundrypublic(generated) - output directory as part of the build processselfie- primary form journey, including all routing and fields, as per HMPO-FormWizardviews- Nunjucks view templates to render
Translations are stored in json files in the locales directory. Translations are applied to the application using HMPO i18n. Multiple languages are supported by default using language codes - currently only English translations have been provided during the prototype stage.
BASE_INFO_API- Backend service to sign data bundle. (Default to deployment onPaaS)ONFIDO_API_TOKEN- API token for Onfido APIPORT- Webserver Port (defaults to3000)REDIS_SESSION_PORT- Redis PortREDIS_SESSION_URL- Redis URLSESSION_SECRET- Session secret (dev can use any random string)IDEMIA_API_TOKEN- Backend API token for IdemiaIDEMIA_WEB_TOKEN- Frontend token for IdemiaIDEMIA_URL- Idemia service URL
- Internally this app makes extensive use of modules that use the debug utility for logging. Try adding
DEBUG=*at the start of thenpm runcommand