Skip to content
The Office of the Public Guardian Lasting Power of Attorney online service: Managed by opg-org-infra & Terraform
PHP JavaScript HTML CSS HCL Groovy Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci reevert test of master only route Aug 21, 2019
local-config Added Front to docker-compose Aug 21, 2019
local-ssl/certs Added Front to docker-compose Aug 21, 2019
service-admin
service-api
service-front
service-pdf update COPY path in app Dockerfiles Aug 21, 2019
terraform remove workspace destroyer from account level terraform Aug 20, 2019
workspace_destroyer_lambda
.gitignore
README.md
docker-compose.yml

README.md

LPA Online Service

The Office of the Public Guardian Lasting Power of Attorney online service: Managed by opg-org-infra & Terraform.

Local Development Setup

The first time you bring up the environment:

git clone git@github.com:ministryofjustice/opg-lpa.git
cd opg-lpa

docker-compose run front-composer
docker-compose run admin-composer
docker-compose run api-composer
docker-compose run pdf-composer

docker-compose up

You will also need a copy of the local config file service-front/config/autoload/local.php. Any developer on the team should be able to provide you with this.

The LPA Tool service will be available via https://localhost:7002/home The Admin service will be available via https://localhost:7003

The API service will be available (direct) via http://localhost:7001

After the first time, you bring up the environment with:

docker-compose up

Tests

To run the unit tests

docker-compose run front-app /app/vendor/bin/phpunit
docker-compose run admin-app /app/vendor/bin/phpunit
docker-compose run api-app /app/vendor/bin/phpunit
docker-compose run pdf-app /app/vendor/bin/phpunit

Updating composer dependencies

Composer install is run when the app containers are built, and on a standard docker-compose up.

It can also be run independently with:

docker-compose run <service>-composer

New packages can be added with:

docker-compose run <service>-composer composer require author/package

Packages can be removed with:

docker-compose run <service>-composer composer remove author/package
You can’t perform that action at this time.