Skip to content

ministryofjustice/hmpps-strengths-based-needs-assessments-ui

Repository files navigation

hmpps-strengths-based-needs-assessments-ui

repo standards badge CircleCI Docker Repository on Quay

UI for the Strengths and Needs assessment service.

Libraries this service uses include:

Running the service

The service and all of its dependencies are run in Docker containers.

To start it, run:

make up

The entry point for the service is http://localhost:7072

To update containers

make down update up

Development

To install dependencies locally, run:

make dev-update

To start the UI in development mode with live-reload enabled, run:

make dev-up

A remote debugger can be attached to Node.js on port 9229

debugger.png

Run make to see the full list of dev commands.

Testing

make lint to run the linter.

make lint-fix to automatically fix linting issues.

make test to run the unit test suite.

make e2e to run the end-to-end tests in the Cypress app.

Deployment

Deployments of the main branch to Development -> Preproduction -> Production are automated through the build-test-and-deploy workflow in CircleCI.

To deploy a branch manually to the Test environment, open the project in CircleCI and follow these steps:

  1. Select the branch you wish to deploy
  2. Press the "Trigger Pipeline" button
  3. Add a string parameter named "deploy" with value "test"
  4. Press "Trigger Pipeline"

Service dependencies