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.
Running the application requires the following tools to be installed in your environment:
$ yarn install
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
$ yarn build:prod
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
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).
We use ESLint alongside sass-lint
Running the linting with auto fix:
$ yarn lint --fix
You can run unit tests by executing the following command:
$ yarn test
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.
$ yarn test:functional:min # Runs minimum functional tests (path-to-live)
$ yarn test:functional:all # Runs all functional tests (nightly)
$ yarn test:pa11y
This project is licensed under the MIT License, see the LICENSE file for details.