https://github.com/thoughtworksinc/loans-lah-tdd-workshop
https://github.com/thoughtworksinc/loans-lah-tdd-workshop
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/thoughtworksinc/loans-lah-tdd-workshop
- Owner: ThoughtWorksInc
- License: mit
- Created: 2019-08-21T10:15:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T00:41:27.000Z (over 2 years ago)
- Last Synced: 2024-04-14T05:23:53.482Z (about 1 year ago)
- Language: JavaScript
- Size: 2.38 MB
- Stars: 5
- Watchers: 10
- Forks: 0
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# loans-lah-tdd-workshop
## Modules
### api-tests
End to end tests for Loans Lah!### loan
Backend application, exposes api for taking a loan.### db
Database module, used by docker### loans-lah-app
BFF for loans-lah backend services### loans-lah-web
UI for loans-lah### loans-lah-e2e
e2e test suite for loans-lah## Setup
Setup for project for [IntelliJ](https://github.com/ThoughtWorksInc/loans-lah-tdd-workshop/blob/master/doc/SETUP.md)## Requirements
`openjdk-11``docker` latest version
`docker-compose` [compatible](https://docs.docker.com/compose/compose-file/) with version 3.7 of compose files
`Nodejs` version `12.x`
## How to test
Run `./build.sh` from the main directory to build all modules## How to build & run
Run `./build.sh` from the main directory to build all modulesNext, run `./start.sh` to run all of them.
## Troubleshooting
### My artifact used by Docker seems to be old ...
Both `loan` and `loan-lah-app` exposes `/actuator/info` which contains git sha info.
It helps you to verify which git commit has been taken by Docker.
Send `GET` to `http://localhost:8910/actuator/info` for `loan-lah-app`
Send `GET` to `http://localhost:8010/actuator/info` for `loan`
You'll see similar response
```json
{
"git": {
"branch": "master",
"commit": {
"id": "a38c485",
"time": "2019-12-01T06:38:19Z"
}
}
}
```
Compare it with `git rev-parse --short HEAD` output. All SHAs should be the same.### I want to remove LoanLah's docker images & containers
If you'd like to remove LoansLah's docker containers and images run `./reset.sh`