Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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