Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

alphagov/di-ipv-alpha-atp-selfie

Repository files navigation

di-ipv-atp-selfie

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.

Installation

To install dependencies run:

npm install

Build

To build generated files run:

npm run build

Start

To run use:

node app.js

To run in continuous development mode use:

nodemon app.js

Folder structure

  • app.js - main file that constructs an Express app using HMPO-Ap
  • assets - static assets such as images and stylesheets
  • data - test data for use with downstream facial identification systems
  • locales - i18n language files, structured as required for HMPO-App
  • manifest.yml - deployment configuration for Cloud Foundry
  • public (generated) - output directory as part of the build process
  • selfie - primary form journey, including all routing and fields, as per HMPO-FormWizard
  • views - Nunjucks view templates to render

Translations

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.

Environment Variables

  • BASE_INFO_API - Backend service to sign data bundle. (Default to deployment on PaaS)
  • ONFIDO_API_TOKEN - API token for Onfido API
  • PORT - Webserver Port (defaults to 3000)
  • REDIS_SESSION_PORT - Redis Port
  • REDIS_SESSION_URL - Redis URL
  • SESSION_SECRET - Session secret (dev can use any random string)
  • IDEMIA_API_TOKEN - Backend API token for Idemia
  • IDEMIA_WEB_TOKEN - Frontend token for Idemia
  • IDEMIA_URL - Idemia service URL

Troubleshooting

  • Internally this app makes extensive use of modules that use the debug utility for logging. Try adding DEBUG=* at the start of the npm run command

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published