dmcg / gilded-rose-tdd

A TDD implementation of the Gilded Rose stock control system
59 stars 13 forks source link

gilded-rose-tdd

A TDD implementation of the Gilded Rose stock control system

You can see the development of this code on YouTube

Setup

Requires Java 21 and Docker

Start Postgres in Docker

db/start-db.sh

Initialise the test database

./gradlew flywayMigrate

Run (most of) the Tests

./gradlew clean test

Initialise the local database

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