Skip to content

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

Repository files navigation

hmpps-strengths-based-needs-assessments-api

repo standards badge CircleCI Docker Repository on Quay API docs

API for the Strengths and Needs assessment service.

Running the service

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

To start it, run:

make up

The service is on http://localhost:8080

To check the status, go to http://localhost:8080/health

The UI can be accessed on http://localhost:7072

The Swagger docs are on http://localhost:8080/swagger-ui/index.html

To update containers

make down update up

Development

To start the API in development mode, run:

make dev-up

To enable live-reload after starting in development mode, run:

make watch

A remote debugger can be attached to the containerised JVM on port 5005

debugger.png

To generate an authentication token (JWT) for the local API, run:

make dev-api-token

Run make to see the full list of dev commands.

Testing

make lint to run the linter.

make test to run the test suite.

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

  • hmpps-auth - for authentication using OAuth/JWT
  • PostgreSQL - for persisting assessment data

About

API for strengths based needs assessments

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages