Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions devslab-kit-demo/README.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ curl -s localhost:8080/admin/api/v1/auth/login \
[관리자 콘솔](https://github.com/devslab-kr/devslab-kit-admin-ui)을
`http://localhost:8080`에 연결하면 같은 API 위에서 UI를 쓸 수 있습니다.

API 자체를 둘러보려면 — 스타터가 Swagger UI를 포함하므로(devslab-kit `0.2.1`+)
추가 설정 없이 바로 뜹니다:

- Swagger UI: <http://localhost:8080/swagger-ui.html>
- OpenAPI JSON: <http://localhost:8080/v3/api-docs>

## 테스트 실행 (Docker만 필요)

```bash
Expand Down
6 changes: 6 additions & 0 deletions devslab-kit-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ curl -s localhost:8080/admin/api/v1/auth/login \
Point the [admin console](https://github.com/devslab-kr/devslab-kit-admin-ui) at
`http://localhost:8080` for a UI over the same API.

Or browse the API itself — the starter bundles Swagger UI (devslab-kit `0.2.1`+),
so it's live with no extra setup:

- Swagger UI: <http://localhost:8080/swagger-ui.html>
- OpenAPI JSON: <http://localhost:8080/v3/api-docs>

## Run the tests (Docker only)

```bash
Expand Down
6 changes: 4 additions & 2 deletions devslab-kit-demo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ repositories {
}

dependencies {
// The devslab-kit starter pulls in the whole platform's auto-configuration.
implementation("kr.devslab:devslab-kit-spring-boot-starter:0.1.0")
// The devslab-kit starter pulls in the whole platform's auto-configuration —
// including Swagger UI (springdoc is bundled from 0.2.1), so /swagger-ui and
// /v3/api-docs come up with no extra dependency.
implementation("kr.devslab:devslab-kit-spring-boot-starter:0.3.0")

// devslab-kit is deliberately unopinionated about which Spring starters you
// bring — a consumer wires the runtime it actually wants. This is the set the
Expand Down
4 changes: 2 additions & 2 deletions devslab-kit-demo/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ services:
- 'POSTGRES_USER=demo'
- 'POSTGRES_PASSWORD=demo'
ports:
- '5432:5432'
- '15432:5432'
redis:
image: 'redis:7-alpine'
ports:
- '6379:6379'
- '16379:6379'
32 changes: 0 additions & 32 deletions devslab-kit-demo/docker-compose.yml

This file was deleted.

4 changes: 2 additions & 2 deletions devslab-kit-demo/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ spring:
# compose.yaml (Postgres + Redis) is started automatically on `bootRun` by
# spring-boot-docker-compose; these defaults point at it.
datasource:
url: ${DEVSLAB_DATASOURCE_URL:jdbc:postgresql://localhost:5432/demo}
url: ${DEVSLAB_DATASOURCE_URL:jdbc:postgresql://localhost:15432/demo}
username: ${DEVSLAB_DATASOURCE_USERNAME:demo}
password: ${DEVSLAB_DATASOURCE_PASSWORD:demo}
data:
redis:
host: ${DEVSLAB_REDIS_HOST:localhost}
port: ${DEVSLAB_REDIS_PORT:6379}
port: ${DEVSLAB_REDIS_PORT:16379}

jpa:
open-in-view: false
Expand Down