nsmithuk / opg-lpa

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:PHP 67.7%Language:JavaScript 17.2%Language:HTML 7.8%Language:CSS 4.7%Language:HCL 1.7%Language:Python 0.3%Language:Groovy 0.2%Language:Shell 0.2%Language:Dockerfile 0.2%Language:Makefile 0.0%