프로젝트
GitHub에서 보기
ESchouten/CleanArchitecture
소개
Kotlin backend based on the Clean Architecture principles. Ktor, JWT, Exposed, Flyway, OpenAPI/REST & KGraphQL/GraphQL generated endpoints, Gradle.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalKotlin Clean Architecture Backend
Kotlin backend based on the Clean Architecture principles.
The application is separated into three modules: Domain, Usecases and Adapters
- Domain module contains all entities, it's validation and repository interfaces
- Usecases module performs actions on the domain entities and repositories and does authorization
The domain and usecases modules do not have any external dependencies.
- Adapter layer: each adapter is implemented as a standalone module, lowering dependence on specific frameworks and libraries and making them interchangable. The infrastructure module consumes all adapters (e.g. databases, (graphql) endpoints, authentication logic)
GraphQL endpoints are auto-generated from the Usecases
Technologies:
Ktor, JWT, Exposed, Flyway, OpenAPI/REST & KGraphQL/GraphQL generated endpoints, Gradle.

OpenAPI REST
Docs URL: http://localhost:8080/docs
API definitions: http://localhost:8080/openapi.json
GraphQL
Playground URL: http://localhost:8080/graphql
Login
query Login {
LoginUser(a0: { email: "[email protected]", password: "P@ssw0rd!" })
}
Retrieve current user
query CurrentUser {
AuthenticatedUser {
id
email
authorities
}
}
HTTP Headers
{
"Authorization": "Bearer [TOKEN FROM LOGIN]"
}
Create new user
mutation CreateUser {
CreateUser(
a0: {
email: "[email protected]"
password: "Penait1!"
authorities: [USER]
}
) {
id
email
authorities
}
}
HTTP Headers
{
"Authorization": "Bearer [TOKEN FROM LOGIN]"
}
관련 프로젝트 살펴보기
불러오는 중…