### Run the Example Application Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/clients/nodejs/README.md Start the Node.js example application locally, assuming the simulator is already running. ```bash npm run dev:sim ``` -------------------------------- ### Start the GOV.UK One Login Simulator Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/clients/nodejs/README.md Start the simulator locally using npm. This is a prerequisite for running the example from source. ```bash npm run simulator:start ``` -------------------------------- ### Install, Build, and Start F2F Tool Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/tools/f2f-test/README.md Commands to install dependencies, build the Typescript project, and start the F2F test tool. ```bash npm install npm run build npm run start ``` -------------------------------- ### Install Node.js Dependencies and Build Example Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/clients/nodejs/README.md Install Node.js version 22.11.0, resolve dependencies, and build the example application using npm. ```bash nvm install 22.11.0 && nvm use 22.11.0 npm ci && npm run build ``` -------------------------------- ### Clone the Example Repository Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/clients/nodejs/README.md Clone the GOV.UK One Login onboarding examples repository to get the Node.js client source code. ```bash git clone https://github.com/govuk-one-login/onboarding-examples cd onboarding-examples/clients/nodejs ``` -------------------------------- ### Run Example and Simulator with Docker Compose Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/clients/nodejs/README.md Use Docker Compose to quickly run the example application and the GOV.UK One Login simulator locally. ```bash docker compose up ``` -------------------------------- ### Start F2F Tool with Docker Compose Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/tools/f2f-test/README.md Command to start the F2F test tool using Docker Compose. ```bash docker compose up --build ``` -------------------------------- ### TOTP CLI Usage Example Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/tools/totp/README.md Demonstrates the command-line interface for the totp.ts tool, showing how to provide the secret key. ```bash totp.ts Y3BUOUHH4CB7JQNQGYRSTUC5PAHYRJAJ ``` -------------------------------- ### Example Identity Data Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/data/README.md An example of an identity credential in JSON format, including type and credential subject details like name and birth date. ```json { "type": ["VerifiableCredential", "IdentityCheckCredential"], "credentialSubject": { "name": [ { "nameParts": [ { "value": "KENNETH", "type": "GivenName" }, { "value": "DECERQUEIRA", "type": "FamilyName" } ] } ], "birthDate": [ { "value": "1965-07-08" } ] } } ``` -------------------------------- ### Initiate F2F Journey Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/tools/f2f-test/README.md The URL to access to start the F2F test journey, assuming default port and localhost. ```bash http://localhost:8083 ``` -------------------------------- ### Example Address Data Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/data/README.md A typical example of an address in JSON format, including country, UPRN, building details, street, postal code, locality, and validity dates. ```json [ { "addressCountry": "GB", "uprn": 100023336956, "buildingName": "", "organisationName": "PRIME MINISTER & FIRST LORD OF THE TREASURY", "streetName": "DOWNING STREET", "postalCode": "SW1A 2AA", "buildingNumber": "10", "addressLocality": "LONDON", "validFrom": "1998-01-01", "subBuildingName": "" } ] ``` -------------------------------- ### Running the TOTP Generator Locally Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/tools/totp/README.md Provides instructions for installing dependencies and running the TypeScript TOTP generator tool from the command line. ```bash npm install npx ts-node ./totp.ts Y3BUOUHH4CB7JQNQGYRSTUC5PAHYRJAJ ``` -------------------------------- ### Example Name Data Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/data/README.md A sample name structure within a verifiable credential, detailing given and family names. ```json { "type": ["VerifiableCredential", "IdentityCheckCredential"], "credentialSubject": { "name": [ { "nameParts": [ { "value": "STEPHEN", "type": "GivenName" }, { "value": "MOORE MBE", "type": "FamilyName" } ] } ] } } ``` -------------------------------- ### Simulator Configuration Directory Structure Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/data/README.md Illustrates the directory structure for GOV.UK One Login Simulator configuration files, organized by curl and REST client dialects. ```bash └── simulator-configuration ├── curl │   ├── auth │   │   └── errors │   ├── endpoints │   └── identity │   └── errors └── http ├── auth │   └── errors ├── endpoints └── identity └── errors ``` -------------------------------- ### Reset Simulator Configuration (Bash) Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/data/README.md Command to reset the GOV.UK One Login Simulator configuration using a bash script. Can be run directly or sourced. ```bash bash simulator-configuration/cuel/reset.sh ``` ```bash source bash simulator-configuration/cuel/reset.sh ``` -------------------------------- ### Check Simulator Status Source: https://github.com/govuk-one-login/onboarding-examples/blob/main/clients/nodejs/README.md Verify that the simulator is running and accessible on port 3000. ```bash npm run simulator:config ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.