# ouchuangxin/leave-sample

本代码来源于极客时间《DDD实战》专栏。

Repository: https://github.com/ouchuangxin/leave-sample
Canonical: https://ross.abutalabs.com/products/leave-sample
Homepage: http://gk.link/a/10nH6
Language: Java
License Family: other
Last push: 2026-05-06T11:58:43+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 81, release rhythm 35, longevity 100
- inputs: {"age_days": 2437, "days_push": 119, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1031, forks 588 (observed 2026-08-28T04:03:17.956395+00:00)

## What it is
Sample Java/Spring Boot code accompanying the Geek Time 'DDD in Practice' course, demonstrating a leave-approval microservice designed with Domain-Driven Design. It illustrates aggregates, repositories, domain events, layered architecture, and inter-service communication with PostgreSQL persistence.

## Use cases
- learn domain-driven design with a real Java codebase
- see how to structure a DDD microservice with Spring Boot
- understand aggregate roots, entities, and value objects in practice
- study domain event persistence and publishing patterns
- learn DDD layered architecture (domain, application, infrastructure, interface)
- reference example for splitting a monolith into microservices
- see DTO/DO/PO object conversion across layers

## When to choose
- you are learning DDD and want a worked Java example
- you follow the Geek Time DDD course and need its companion code
- you want a reference for repository, factory, and domain event patterns in Spring Boot

## When to avoid
- you need production-ready leave/attendance software
- you need a maintained library with a license and active support
- you work outside the Java/Spring ecosystem

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: web-framework, database, middleware
- domain: developer-tools, backend, tutorials, apis
- platform: jvm, self-hosted
- tags: ddd, domain-driven-design, sample-code, spring-boot, postgresql, microservices, geektime, leave-management, event-storming, chinese, docker

## Member repositories
- ouchuangxin/leave-sample (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:17.956395+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:07:28.892413+00:00, confidence not recorded.
  - readme: https://github.com/ouchuangxin/leave-sample (fetched 2026-08-28T04:03:17.956395+00:00, sha 4dc2626c41ab)
  - homepage: http://gk.link/a/10nH6 (fetched 2026-08-29T13:06:54.056972+00:00, sha 04b007906bb6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
