Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmcg/gilded-rose-tdd
A TDD implementation of the Gilded Rose stock control system
https://github.com/dmcg/gilded-rose-tdd
Last synced: 7 days ago
JSON representation
A TDD implementation of the Gilded Rose stock control system
- Host: GitHub
- URL: https://github.com/dmcg/gilded-rose-tdd
- Owner: dmcg
- Created: 2022-04-26T09:11:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T10:32:50.000Z (10 days ago)
- Last Synced: 2024-10-28T13:52:52.219Z (10 days ago)
- Language: Kotlin
- Size: 1.09 MB
- Stars: 58
- Watchers: 5
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gilded-rose-tdd
A TDD implementation of the Gilded Rose stock control system
You can see the development of this code on [YouTube](https://youtube.com/playlist?list=PL1ssMPpyqocg2D_8mgIbcnQGxCPI2_fpA)
## Setup
Requires Java 21 and Docker
### Start Postgres in Docker
```bash
db/start-db.sh
```### Initialise the test database
```bash
./gradlew flywayMigrate
```### Run (most of) the Tests
```bash
./gradlew clean test
```### Initialise the local database
```bash
db/migrate-dev.sh
```### Populate the database with test data
Run src/test/java/populate-main.kt
### Run the app
Run src/main/java/main.kt