opg-sirius-lpa-frontend
Frontend forms for Sirius.
Quick start
Major dependencies
Running the application
docker-compose -f docker/docker-compose.yml up -d --build
This will run the application at http://localhost:8888/, and assumes that Sirius
is running at http://localhost:8080/.
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
Testing
Make sure that pact
is available before running the tests, on a Mac with Homebrew you can do:
brew tap pact-foundation/pact-ruby-standalone
brew install pact-ruby-standalone
Then to run the tests:
go test ./...
The tests will produce a ./pacts
directory which is then used to provide a
stub service for the Cypress tests. To start the application in a way that uses
the stub service, and open Cypress in the current project run the following:
docker-compose -f docker/docker-compose.cypress.yml up -d --build
yarn && yarn cypress
Development
On CI we lint using golangci-lint. It may be
useful to install locally to check changes. This will include a check on
formatting so it is recommended to setup your editor to use go fmt
.