Skip to content

Commit 7d3d200

Browse files
committed
Kora examples open source ready
[0.10.1-SNAPSHOT] HttpServer example added [0.10.1-SNAPSHOT] InterceptedController example added [0.10.1-SNAPSHOT] Telemetry example added [0.10.1-SNAPSHOT] HttpServer example improved and reinforced logback-test.xml added LogbackModule included [0.10.1-SNAPSHOT] HttpServerTests simplified [0.10.1-SNAPSHOT] HttpServerTests improved and reinforced [0.10.1-SNAPSHOT] HttpClientTests service example added HttpClient examples improved and reinforced [0.10.1-SNAPSHOT] HttpClient example minor refactoring [0.10.1-SNAPSHOT] Cleanup [0.10.1-SNAPSHOT] Cleanup [0.10.1-SNAPSHOT] build.gradle improved Test example reinforced [0.10.1-SNAPSHOT] Minor renaming [0.10.1-SNAPSHOT] HttpClient more examples added HttpClientTests reinforced and fixed [0.10.1-SNAPSHOT] Jdbc Database Tests [0.10.1-SNAPSHOT] JdbcCrudRepository improved [0.10.1-SNAPSHOT] JdbcMonoCrudRepository added JdbcTests reinforced and updated [0.10.1-SNAPSHOT] Jdbc examples refactored and improved [0.10.1-SNAPSHOT] R2dbcReactorRepository added R2dbcTests added [0.10.1-SNAPSHOT] Nullable field example added for JDBC and R2DBC [0.10.1-SNAPSHOT] VertxReactorRepository added VertxTests added [0.10.1-SNAPSHOT] Mapping example for Jdbc, R2dbc, Vertx added [0.10.1-SNAPSHOT] Select * for findAll set [0.10.1-SNAPSHOT] ResponseMappingHttpClient example added [0.10.1-SNAPSHOT] Kora Java OpenAPI Generator HTTP Server example added [0.10.1-SNAPSHOT] Kora Database examples separated into different jdbc,r2dbc,vertx examples [0.10.1-SNAPSHOT] Java OpenAPI Generator HTTP Client examples added OpenAPI Generator HTTP Server V3 as reactive server generation changed [0.12.0-SNAPSHOT] OpenAPI examples dependency for generator added config for DB examples updated Kora up to 0.12.0 [0.12.0-SNAPSHOT] OpenAPI generation examples updated [0.13.1] Gradle updated Kora updated to 0.13.1 [0.13.1] JDBC example refactored and updated [0.13.1] R2DBC example refactored and updated [0.13.1] Vertx module examples updated and refactored [0.13.2] HTTP Client module refactored and updated [0.13.2] HTTP Server module updated and improved [0.13.2] JDBC module package refactoring [0.13.2] R2DBC module package refactoring [0.13.2] Vertx module package refactoring [0.13.2] Telemetry module package refactoring [0.13.2] OpenAPI generator modules updated [0.13.2] HTTP Client & HTTP Server modules updated [0.13.3] kora 0.13.2 -> 0.13.3 Tests fixed [0.13.3] HTTP Server examples added [0.13.3] Validation module example added [0.13.3] gRPC Server module added [0.13.3] modules package update GRPC module tests fixed [0.13.3] Soap client example added [0.13.5] Existing modules updated [0.13.5] Resilient example added [0.13.1-SNAPSHOT] Cassandra example in progress [0.13.5] Kora 0.13.5 [0.13.5] Cassandra example up to date [0.13.6] Scheduling JDK example added [0.13.6] Scheduling Quartz example added [0.14.0-SNAPSHOT] Existing examples updated [0.14.0-SNAPSHOT] Kafka module added [0.14.0-SNAPSHOT] Caffeine example added [0.14.0-SNAPSHOT] Redis cache example added [0.14.0-SNAPSHOT] logging cleanup Code style cleanup [0.14.0-SNAPSHOT] Kafka example updated TransactionalPublisherTests proper options added [0.14.0-SNAPSHOT] README.md updated Logger config updated Dependencies updated build.gradle cleanup [0.14.0-SNAPSHOT] Kora Java CRUD example added [0.14.0-SNAPSHOT] Tests reinforced [0.14.4] Crud example cache restored & tests reinforced [0.14.5] Kora updated to 0.14.5 Dependencies updated build.gradle cleanup [0.14.5] Hello World example added [0.14.5] Kotlin HelloWorld example added README.md minor improvements [0.14.7] Cleanup [0.14.7] Logback module added HTTP client examples improved Kotlin example updated [1.0.0-SNAPSHOT] Examples updated [1.0.0-SNAPSHOT] Code style [1.0.0-SNAPSHOT] Cleanup JdbcJsonbRepository example added [1.0.0-SNAPSHOT] RC10->RC12 Macros examples added Kora 1.0.0->1.0.1 Final modifier added Kotlin CRUD example added Hocon & YAML config examples added Config updated Ready for open source
0 parents  commit 7d3d200

File tree

459 files changed

+21373
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

459 files changed

+21373
-0
lines changed

.editorconfig

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# all-encompassing default settings unless otherwise specified
7+
[*]
8+
end_of_line = lf
9+
charset = utf-8
10+
11+
# Json
12+
[*.json]
13+
indent_size = 2
14+
indent_style = space
15+
insert_final_newline = false
16+
trim_trailing_whitespace = true
17+
18+
# Yaml
19+
[{*.yml, *.yaml}]
20+
indent_size = 2
21+
indent_style = space
22+
insert_final_newline = true
23+
trim_trailing_whitespace = true
24+
25+
# Property files
26+
[*.properties]
27+
indent_size = 2
28+
indent_style = space
29+
insert_final_newline = true
30+
trim_trailing_whitespace = true
31+
32+
# XML files
33+
[*.xml]
34+
indent_size = 4
35+
indent_style = space
36+
insert_final_newline = true
37+
trim_trailing_whitespace = true

.gitattributes

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Handle line endings automatically for files detected as text
2+
# and leave all files detected as binary untouched.
3+
* text=auto
4+
5+
6+
# The above will handle all files NOT found below
7+
# These files are text and should be normalized (Convert crlf => lf)
8+
*.bash text eol=lf
9+
*.css text diff=css
10+
*.df text
11+
*.htm text diff=html
12+
*.html text diff=html eol=lf
13+
*.java text diff=java eol=lf
14+
*.js text
15+
*.json text eol=lf
16+
*.jsp text eol=lf
17+
*.jspf text eol=lf
18+
*.jspx text eol=lf
19+
*.properties text eol=lf
20+
*.sh text eol=lf
21+
*.tld text
22+
*.txt text eol=lf
23+
*.tag text
24+
*.tagx text
25+
*.xml text
26+
*.yml text eol=lf
27+
28+
29+
# These files are binary and should be left untouched
30+
# (binary is a macro for -text -diff)
31+
# Archives
32+
*.7z binary
33+
*.br binary
34+
*.gz binary
35+
*.tar binary
36+
*.zip binary
37+
*.jar binary
38+
*.so binary
39+
*.war binary
40+
*.dll binary
41+
42+
# Documents
43+
*.pdf binary
44+
45+
# Images
46+
*.ico binary
47+
*.gif binary
48+
*.jpg binary
49+
*.jpeg binary
50+
*.png binary
51+
*.psd binary
52+
*.webp binary
53+
54+
# Fonts
55+
*.woff2 binary
56+
57+
# Other
58+
*.exe binary
59+
*.class binary
60+
*.ear binary

.github/workflows/test-master.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up JDK
15+
uses: actions/setup-java@v3
16+
with:
17+
java-version: '17'
18+
distribution: 'adopt'
19+
20+
- name: Build
21+
run: './gradlew classes'
22+
23+
- name: Build tests
24+
run: './gradlew testClasses'
25+
26+
- name: Test
27+
run: './gradlew test jacocoTestReport'

.github/workflows/test-pr.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Run tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "master"
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up JDK
15+
uses: actions/setup-java@v3
16+
with:
17+
java-version: '17'
18+
distribution: 'adopt'
19+
20+
- name: Build
21+
run: './gradlew classes'
22+
23+
- name: Build tests
24+
run: './gradlew testClasses'
25+
26+
- name: Test
27+
run: './gradlew test jacocoTestReport'
28+
29+
- name: Test Report
30+
uses: EnricoMi/publish-unit-test-result-action@v2
31+
with:
32+
files: |
33+
**/test-results/**/*.xml

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
### Package Files
2+
*.war
3+
*.nar
4+
*.ear
5+
*.zip
6+
*.tar.gz
7+
*.rar
8+
9+
### Gradle template
10+
.gradle
11+
build/
12+
target/
13+
14+
### Idea generated files
15+
.idea
16+
.settings/
17+
*.iml
18+
out/

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Kora applications examples
2+
3+
В данном репозитории собраны примеры сервисов использующих различные модули [Kora](https://kora-projects.github.io/kora-docs/kora/).
4+
5+
Здесь можно посмотреть на реализации модулей, протестировать их функционал, использовать примеры как пособие по начальному погружению в Kora.
6+
7+
---
8+
9+
This repository contains examples of applications using various [Kora](https://kora-projects.github.io/kora-docs/kora/) modules.
10+
11+
Here you check working examples, test their functionality and use the examples as a guide to help you get started with Kora.

build.gradle

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
plugins {
2+
id "com.diffplug.spotless" version "6.19.0"
3+
}
4+
5+
group = groupId
6+
version = koraVersion
7+
8+
repositories {
9+
mavenLocal()
10+
mavenCentral()
11+
}
12+
13+
subprojects {
14+
apply plugin: "java"
15+
apply plugin: "com.diffplug.spotless"
16+
17+
group = groupId
18+
version = koraVersion
19+
20+
repositories {
21+
mavenLocal()
22+
mavenCentral()
23+
}
24+
25+
spotless {
26+
java {
27+
encoding("UTF-8")
28+
importOrder()
29+
removeUnusedImports()
30+
eclipse("4.21").configFile("${rootDir}/config/codestyle.xml")
31+
targetExclude("**/proto/**", "**/generated/openapi/**", "**/generated/soap/**", "**/generated/grpc/**",)
32+
}
33+
}
34+
35+
configurations {
36+
all {
37+
resolutionStrategy {
38+
cacheChangingModulesFor 0, "seconds" // check for updates every build
39+
}
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)