opg-sirius-lpa-frontend

command module
v1.10.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 13 Imported by: 0

README

opg-sirius-lpa-frontend

codecov PkgGoDev

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
docker
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL