Skip to content

ministryofjustice/hmpps-audit-poc-ui

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9c8d193 Β· Oct 30, 2023

History

47 Commits
Oct 18, 2023
Mar 13, 2023
Oct 18, 2023
Sep 7, 2021
Oct 18, 2023
Oct 18, 2023
Oct 30, 2023
Oct 18, 2023
Sep 7, 2021
Oct 18, 2023
Oct 18, 2023
Mar 13, 2023
Mar 13, 2023
Oct 18, 2023
Oct 18, 2023
Oct 18, 2023
Oct 18, 2023
Oct 18, 2023
Oct 18, 2023
Oct 18, 2023
Oct 18, 2023
Mar 13, 2023
Oct 30, 2023
Oct 29, 2023
Mar 14, 2023
Sep 7, 2021
Mar 13, 2023
Oct 18, 2023

Repository files navigation

repo standards badge CircleCI

hmpps-audit-poc-ui

A POC to investigate how to capture audit information for frontend applications.

Running the app

The easiest way to run the app is to use docker compose to create the service and all dependencies.

docker compose pull

docker compose up

Dependencies

The app requires:

  • hmpps-auth - for authentication
  • redis - session store and token caching

Running the app for development

Install dependencies using npm install, ensuring you are using node v18.x and npm v9.x

Note: Using nvm (or fnm), run nvm install --latest-npm within the repository folder to use the correct version of node, and the latest version of npm. This matches the engines config in package.json and the CircleCI build config.

And then, to build the assets and start the app with nodemon:

npm run start:dev

Run linter

npm run lint

Run tests

npm run test

Running integration tests

For local running, start a test db, redis, and wiremock instance by:

docker compose -f docker-compose-test.yml up

Then run the server in test mode by:

npm run start-feature (or npm run start-feature:dev to run with nodemon)

And then either, run tests in headless mode with:

npm run int-test

Or run tests with the cypress UI:

npm run int-test-ui

About

A POC frontend application for testing audit strategies

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published