Skip to content

ministryofjustice/opg-modernising-lpa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3d0e24c · Feb 12, 2024
Feb 8, 2024
Aug 2, 2023
Feb 8, 2024
Feb 9, 2024
Feb 5, 2024
Jan 25, 2024
Feb 9, 2024
Feb 5, 2024
Feb 12, 2024
Feb 7, 2024
Feb 8, 2024
Feb 9, 2024
Aug 5, 2022
Oct 24, 2023
Dec 11, 2023
Dec 13, 2023
Oct 11, 2022
Jan 18, 2024
Feb 1, 2024
Feb 7, 2024
Jan 31, 2024
Jan 8, 2024
Aug 1, 2022
Aug 2, 2022
Aug 2, 2022
Aug 2, 2022
Jan 12, 2024
Jan 31, 2024
Jan 20, 2023
Feb 5, 2024
Feb 7, 2024
Aug 10, 2022
Aug 10, 2022
Aug 2, 2022
Feb 5, 2024
Jan 29, 2024
Jan 31, 2024
Feb 5, 2024

Repository files navigation

OPG Modernising LPA

path-to-live-workflow licence-mit codecov

repo standards badge

OPG Modernising LPA Documentation

Documentation for the service can be found in the /docs/ folder.

Getting Started

Prerequisites

  • Docker and docker-compose
  • Nodejs and Yarn

Installation

Install dependencies for development

yarn install

Bring the service up

make up

Run Cypress tests

make run-cypress

Local development

To run the app in dev mode on amd64/intel:

make up-dev

or the following for arm64/apple silicon:

make up-dev-arm

Dev mode adds hot reloading via air which will watch .go and .gohtml for changes and recompile the app.

It also enables debugging via delve. Delve runs on localhost:2345 - add this to your editor/IDE debug config settings and then add breakpoints to step through the app code when running on localhost. Example VSCode debug config:

{
    "name": "Go remote debug",
    "type": "go",
    "request": "attach",
    "mode": "remote",
    "port": 2345,
    "host": "127.0.0.1",
    "trace": "verbose",
}

Pact

We use Pact for contract tests. To install the necessary tools to run the tests do:

go install github.com/pact-foundation/pact-go/v2
pact-go install

Code generation

We make use of mockery for generating mocks and enumerator for generating enums. To use you'll need to go install ./cmd/enumerator, then running make go-generate will create code from any declarations.

Licence

The OPG Modernising LPA code in this repository is released under the MIT license, a copy of which can be found in LICENCE.