https://github.com/buried-in-code/gallagher
https://github.com/buried-in-code/gallagher
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/buried-in-code/gallagher
- Owner: Buried-In-Code
- License: mit
- Created: 2025-03-20T08:02:52.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-04T20:20:59.000Z (10 months ago)
- Last Synced: 2025-04-04T21:29:00.290Z (10 months ago)
- Language: Java
- Homepage:
- Size: 128 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gallagher


[](https://github.com/gradle/gradle)
[](https://github.com/spring-projects/spring-boot)
[](https://github.com/diffplug/spotless)
[](https://github.com/Buried-In-Code/Gallagher/tags)
[](https://opensource.org/licenses/MIT)
[](https://github.com/Buried-In-Code/Gallagher/actions/workflows/integration.yaml)
[](https://github.com/Buried-In-Code/Gallagher/actions/workflows/deployment.yaml)
__TODO:__ Description
## Local development
1. Downstream services are mocked with Wiremock, run: `docker compose -f docker-compose-local.yaml up -d`
2. Start project `SPRING_PROFILES_ACTIVE=local gradle clean bootRun`
## Usage
1. Create a `.env` file with your Gallagher details
```dotenv
GALLAGHER__API_KEY=EXAM-PLE-API-KEY
GALLAGHER__BASE_URL=https://example.com
GALLAGHER__CERTIFICATE=Base64-Encode-of-certificate.pem
GALLAGHER__PRIVATE_KEY=Base64-Encode-of-private-key.pem
CREATE__USER__EMAIL=user@example.com
CREATE__USER__FIRST_NAME=Joe
CREATE__USER__LAST_NAME=Bloggs
CREATE__USER__DIVISION_HREF=https://example.com/api/division/123
CREATE__USER__ACCESS_GROUP_HREF=https://example.com/api/access-group/123
CREATE__USER__EXTERNAL_ID=AAA-12345-BBB
READ__USER__EMAIL=user@example.com
UPDATE__CARD__TYPE_HREF=https://example.com/api/card-type/123
UPDATE__CARD__NUMBER=12345
UPDATE__USER__EMAIL=user@example.com
DELETE__USER__EMAIL=user@example.com
```
2. Create a folder `nginx` and download the [nginx.conf](./nginx/nginx.conf) file to the folder.
2. Download the [docker-compose.yaml](./docker-compose.yaml) file
3. Run with: `docker compose up -d`