Skip to content

Commit

Permalink
Merge pull request #2901 from ministryofjustice/update_readme
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
acsauk authored Nov 4, 2024
2 parents bc98619 + 46f37a5 commit 73ee16e
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,27 @@ OPG Use My LPA: Managed by opg-org-infra & Terraform

## Setup

Clone the following repository into the same base directory:
Clone the following repositories into the same base directory:

- [https://github.com/ministryofjustice/opg-use-an-lpa](https://github.com/ministryofjustice/opg-use-an-lpa)

Additionally, work related to Use is done in:
- [https://github.com/ministryofjustice/opg-data-lpa](https://github.com/ministryofjustice/opg-data-lpa)
- [https://github.com/ministryofjustice/opg-data-lpa-codes](https://github.com/ministryofjustice/opg-data-lpa-codes)

Additionally, work related to Use is done in:

- [https://github.com/ministryofjustice/opg-opg-data-lpa-instructions-preferences](https://github.com/ministryofjustice/opg-data-lpa-instructions-preferences)


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

Add a profile named `ual-dev` to your ~/.aws/config file (speak to your team for the configuration details).

To maintain repo standards and avoid commiting secrets [install pre-commit](https://pre-commit.com/#install) and then initialize with:

```shell
pre-commit install
```

### Makefile

A Makefile is maintained that aliases the most useful docker-compose commands.
Expand Down Expand Up @@ -60,13 +69,15 @@ make rebuild [container name]

***Note:*** this can take several minutes to run.

To bring up the local environment
If you plan on developing the application i:e in most cases, you should also enable development mode.

Before enabling development mode for the first time, run

```shell
make up
make composer_install
```

If you plan on developing the application i:e in most cases, you should also enable development mode.
then run:

```shell
make development_mode
Expand All @@ -85,12 +96,13 @@ The API service will be available via [http://localhost:9003](http://localhost:9
To run all the unit tests (the command for viewer-app and actor-app will run exactly the same suite of unit tests in the front service)

```shell
make unit_test_all
make unit_test

# or, seperately
make unit_test_viewer_app
make unit_test_actor_app
make unit_test_javascript
make unit_test_api_app
```

### Functional (Behat) test
Expand Down

0 comments on commit 73ee16e

Please sign in to comment.