Skip to content
OPG Use An LPA: Managed by opg-org-infra & Terraform
Branch: master
Clone or download
nsmithuk Merge pull request #91 from ministryofjustice/UML-142-activity-table
UML-142: Record lookups in the Activity table
Latest commit d28519c Jun 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
docs/architecture
features
local-config
service-api
service-front Moved code from viewer and actor modules to the common module Jun 11, 2019
terraform_environment
terraform_shared
.adr-dir Add folders for diagrams and initialise ADR tooling Feb 22, 2019
.envrc Uml 93 - Building dev environments per PR - Refactor Terraform config… Apr 11, 2019
.gitignore Wait for services (#74) May 28, 2019
CODEOWNERS Install behave in python container (#17) Apr 3, 2019
README.md Updates to README file Jun 11, 2019
docker-compose.yml
techdebt.md UML-44 build containers in pipeline (#6) Mar 25, 2019

README.md

opg-use-my-lpa

OPG Use My LPA: Managed by opg-org-infra & Terraform

CircleCI

Setup

All commands assume a working directory of opg-use-my-lpa.

To bring up the local environment

docker-compose up

If you plan on developing the application you should also enable development mode.

docker-compose run front-composer composer development-enable
docker-compose exec viewer-app rm -f /tmp/config-cache.php

docker-compose run api-composer composer development-enable
docker-compose exec api-app rm -f /tmp/config-cache.php

The Viewer service will be available via http://localhost:9001

The Actor service will be available via http://localhost:9002

The API service will be available via http://localhost:9003

Tests

To run the unit tests

docker-compose run viewer-app /app/vendor/bin/phpunit

docker-compose run api-app /app/vendor/bin/phpunit

Functional (Behave) test

To run the Behave functional tests

docker-compose run feature-tests

To run a tagged subset of tests

docker-compose run feature-tests behave --tags=<TAG_NAME>

Updating composer dependencies

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

It can also be run independently with:

docker-compose run api-composer

docker-compose run front-composer

New packages can be added with:

docker-compose run api-composer composer require author/package

docker-compose run front-composer composer require author/package

Packages can be removed with:

docker-compose run api-composer composer remove author/package

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