Skip to content

ministryofjustice/hmpps-sentence-plan

Repository files navigation

HMPPS Sentence Plan API

repo standards badge CircleCI Docker Repository on Quay API docs

This is the backend/API for the Sentence Plan project, which aims to enhance the current process of creating and managing sentence plans for individuals on probation or in prison.

Prerequisites

  • Docker

Running the application

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

Note: Every command can be printed using make

Note: An access token (for authenticating with the API) can be generated by performing an OAuth2 client_credentials grant flow to http://localhost:9091/auth/oauth/token, using sentence-plan-api-client for both the client_id and client_secret

Production

  1. To start a production version of the application, run make up
  2. To update all containers, run make down update up

Development

  1. To start a development version of the application, run make dev-up
  2. To enable live-reload, run make watch, the API will now restart each time you change the code.

You can connect to the remote debugger session on http://localhost:5005 like so API docs

Testing

The test suite can be ran using make test

Linting

Linting can be ran using make lint and make lint-fix

About

Sentence Planning

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Languages