Skip to content

hmcts/idam-user-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IdAM User Dashboard

Purpose

IdAM User Dashboard is to be the new and improved replacement for the IdAM web-admin service. IdAM User Dashboard will utilise a new techstack (NodeJS/ExpressJS/Nunjucks), bring a multitude of QoL improvements and intends to focus more on the user-management aspect of the IdAM web admin interface.

Getting Started

Prerequisites

Running the application requires the following tools to be installed in your environment:

Running the application

Install dependencies:

$ yarn install

Managing dependencies:

To update the versions in package.json use:

$ yarn upgrade-interactive

and choose the appropriate version for each dependency.

The jenkins pipeline will check dependency versions for vulnerabilities. If you wish to suppress the issues that the pipeline is looking for you can populate the "yarn-audit-known-issues" file by running:

$ yarn npm audit --recursive --environment production --json > yarn-audit-known-issues

Generate assets bundle:

$ yarn build:prod

Run:

This application is configured to connect to services within AAT (idam-api and idam-web-public) by default. Either connect to the VPN or set STRATEGIC_PUBLIC_URL and STRATEGIC_SERVICE_URL environment variables accordingly.

Use the following commands to start the application:

$ yarn start:dev  # Runs instance for local development
$ yarn start      # Runs production instance

The application's home page will be available at https://localhost:3100

Running with Docker

Create docker image:

  docker-compose build

Run the application by executing the following command:

  docker-compose up

This will start the frontend container exposing the application's port (set to 3100 in this template app).

Developing

Code style

We use ESLint alongside sass-lint

Running the linting with auto fix:

$ yarn lint --fix

Running the tests

Run unit tests

You can run unit tests by executing the following command:

$ yarn test

Note for functional and accessibility tests

Before running the functional tests and accessibility tests, make sure that an instance of the app is running. By default, the tests will run against an instance hosted at https://localhost:3100, but this can be changed by setting the TEST_URL environment variable.

Due to a reliance on 3rd party services, you also need to set LAUNCHDARKLY_SDK_KEY NOTIFY_API_KEY SMOKE_TEST_USER_USERNAME SMOKE_TEST_USER_PASSWORD environment variables accordingly.

Run functional tests

$ yarn test:functional:min    # Runs minimum functional tests (path-to-live)
$ yarn test:functional:all    # Runs all functional tests (nightly)

Running accessibility tests:

$ yarn test:pa11y

License

This project is licensed under the MIT License, see the LICENSE file for details.

About

IdAM user dashboard, a replacement service for the idam-web-admin project.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors 21