Skip to content

LPA dashboard frontend for Sirius: Managed by opg-org-infra & Terraform

License

Notifications You must be signed in to change notification settings

ministryofjustice/opg-sirius-lpa-dashboard

Repository files navigation

Sirius LPA dashboard

PkgGoDev

Quick start

Major dependencies

Running the application

docker compose up -d lpa-dashboard

This will run the application at http://localhost:8888/, and against the mock.

Alternatively the application can be run without the use of Docker

yarn && yarn build
SIRIUS_PUBLIC_URL=http://localhost:8080 SIRIUS_URL=http://localhost:8080 PORT=8888 go run main.go

If you want to run your local changes in the context of local sirius then build the local image and start up sirius.

make build
# cd to sirius repo
make dev-up

Testing

make unit-test

This will run the Go unit tests and generate the local pact contracts for the pact stub for further testing.

make cypress

This will run Cypress aginst the lpa-dashboard and the pact-stub

Development

Linting This will include a check on formatting so it is recommended to setup your editor to use go fmt. You can run linting locally with

make lint

If you want to build the application and run all test suites that get run in CI just run:

make

Environment variables

Name Description
PORT Port to run on
WEB_DIR Path to the 'web' directory
SIRIUS_URL Base URL to call Sirius
SIRIUS_PUBLIC_URL Base URL to redirect to Sirius
PREFIX Path to prefix to each page's route

About

LPA dashboard frontend for Sirius: Managed by opg-org-infra & Terraform

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages