Skip to content

Commit

Permalink
Awesome Kotlin: 2025
Browse files Browse the repository at this point in the history
  • Loading branch information
IRus committed Jan 8, 2025
1 parent 0eec8b3 commit 62747ac
Show file tree
Hide file tree
Showing 1,138 changed files with 8,466 additions and 75,661 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ indent_size=2
[build.gradle.kts]
indent_size=4

[*.{js,ts,tsx,less,html,yml,json}]
[*.{js,ts,tsx,scss,html,yml,json}]
indent_size=2
31 changes: 23 additions & 8 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
AWESOME_JWT_SECRET=
AWESOME__JWT__ISSUER=https://kotlin.link/
AWESOME__JWT__AUDIENCE=https://kotlin.link/
AWESOME__JWT__REALM=awesome-kotlin/v2
AWESOME__JWT__SECRET=

AWESOME_GITHUB_CLIENT_ID=
AWESOME_GITHUB_CLIENT_SECRET=
AWESOME_GITHUB_REDIRECT_URL=http://localhost:9566/auth/github
AWESOME__GITHUB__CLIENT_ID=
AWESOME__GITHUB__CLIENT_SECRET=
AWESOME__GITHUB__REDIRECT_URL=http://localhost:9566/auth/github

AWESOME_JDBC_PORT=9567
AWESOME_JDBC_HOST=localhost
AWESOME__JDBC__PORT=9567
AWESOME__JDBC__HOST=localhost

AWESOME_SERVER_PORT=9566
AWESOME_SERVER_GRACEFUL_SHUTDOWN_TIMEOUT=0s
AWESOME__SERVER__PORT=9566
AWESOME__SERVER__HOST=localhost
AWESOME__SERVER__GRACEFUL_SHUTDOWN_TIMEOUT=10s
AWESOME__SERVER__REACT_DIST_PATH=app-frontend/dist/

AWESOME__WEB__INTERNAL__HOST=localhost
AWESOME__WEB__INTERNAL__PORT=9566
AWESOME__WEB__INTERNAL__PROTOCOL=http

AWESOME__WEB__EXTERNAL__HOST=kotlin.link
AWESOME__WEB__EXTERNAL__PORT=443
AWESOME__WEB__EXTERNAL__PROTOCOL=https

GH_TOKEN=
16 changes: 3 additions & 13 deletions .github/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@

## Adding to this list

This awesome list contains two views: standard github README page view, and nice website with search.

**To contribute** to both places you need:

1. Checkout `main` branch;
2. Edit **[src/main/resources/links/](https://github.com/Heapy/awesome-kotlin/tree/main/src/main/resources/links)${category}.awesome.kts**;
3. Create PR.

*Happy contributing!*

## How to update website/readme?

Build on Travis CI automatically updates website and readme on pushes to **main** branch.
Login to https://kotlin.link/ and click on the "Add a link" button.
Fill in the form and submit it.
The link will be added to the list after it has been reviewed.
2 changes: 1 addition & 1 deletion .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Please use issues only for submitting bugs, feature requests, etc.
Use Pull Requests to submitting projects or links.
Use https://kotlin.link/ for submitting projects or links.
4 changes: 0 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
Make sure that you are making pull request against [`main`](https://github.com/Heapy/awesome-kotlin/tree/main) branch. Pull requests against `readme` branch will not be accepted, because all manual changes to this branch will be overridden by changes from `main` branch. Consult [contributing.md](https://github.com/Heapy/awesome-kotlin/blob/main/.github/contributing.md) for details.

Checklist:

- [ ] Is this pull request against the branch `main`?
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: "Build"

on:
push:
pull_request:

jobs:
check:
if: ${{ github.event_name == 'pull_request' }}
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Generated
/readme/README.md

# Local Configuration
.env

Expand Down
10 changes: 0 additions & 10 deletions .run/Awesome Kotlin 1.0.run.xml

This file was deleted.

9 changes: 9 additions & 0 deletions Backlog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ Followers
Tags -> Topics
Topic: Graph
https://awesomejava.resamvi.io/
https://akkurate.dev/
https://github.com/UselessMnemonic/Pak
https://github.com/daniel-rusu/pods4k/tree/main
https://github.com/Saumya-Bhatt/karya
https://github.com/nbadal/ktlint-intellij-plugin
https://github.com/mockoon/mockoon
https://github.com/kevincianfarini/alchemist
https://strikt.io/
https://github.com/fluxo-kt/fluxo

Possible categories:
Serialization
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@

A curated list of awesome Kotlin related stuff inspired by awesome-java. :octocat:

Discuss this project in [Kotlin Slack](http://slack.kotlinlang.org/), channel: **# awesome-kotlin**
Discuss this project in [Kotlin Slack](http://slack.kotlinlang.org/), channel: **#awesome-kotlin**

[![List of Awesome List Badge](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) [![Build](https://github.com/Heapy/awesome-kotlin/actions/workflows/build.yml/badge.svg)](https://github.com/Heapy/awesome-kotlin/actions/workflows/build.yml) [![Awesome Kotlin Badge](https://kotlin.link/awesome-kotlin.svg)](https://github.com/Heapy/awesome-kotlin)

:newspaper: [RSS Feed of articles, videos, slides, updates (20 latest articles)](http://kotlin.link/rss.xml)

:newspaper: [RSS Feed of articles, videos, slides, updates (full archive)](http://kotlin.link/rss-full.xml)

:octocat: [Awesome Kotlin - README.md](https://github.com/Heapy/awesome-kotlin/blob/readme/README.md) - README with links

## Spread Awesome Kotlin!

Here is the awesome badge for your project:
Expand Down
2 changes: 1 addition & 1 deletion app-backend-dataops/src/main/kotlin/Generate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fun drop() {
fun flyway() {
Flyway
.configure()
.locations("filesystem:./app-backend/src/main/resources/db/migration/main")
.locations("filesystem:./app-backend/src/main/resources/infra/db/migration/main")
.dataSource(
"jdbc:postgresql://localhost:9567/awesome_kotlin",
"awesome_kotlin",
Expand Down
4 changes: 0 additions & 4 deletions app-backend/Dockerfile

This file was deleted.

14 changes: 14 additions & 0 deletions app-backend/api-resources.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### Atom feed, 20 latest
GET {{host}}/rss.xml

### Atom feed, all
GET {{host}}/rss-full.xml

### Sitemap
GET {{host}}/sitemap.xml

### Articles
GET {{host}}/articles

### README.md
GET {{host}}/readme.md
21 changes: 9 additions & 12 deletions app-backend/api.http
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
###
POST {{host}}/register
Content-Type: application/json

Expand All @@ -14,7 +15,6 @@ Content-Type: application/json
}

###

POST {{host}}/login
Content-Type: application/json

Expand All @@ -30,25 +30,22 @@ Content-Type: application/json
}

###

GET {{host}}/

###

GET {{host}}/ping/test

###

GET {{host}}/kugs

###

POST {{host}}/kugs

###

GET {{host}}/metrics-micrometer
### Prometheus Metrics
GET {{host}}/metrics

###
### Healthcheck
GET {{host}}/healthcheck

### Test
GET {{host}}/test

### Home Page
GET {{host}}/home
29 changes: 24 additions & 5 deletions app-backend/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
application
alias(libs.plugins.ksp)
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.serialization)
}
Expand All @@ -13,17 +14,22 @@ repositories {
mavenCentral()
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlin {
compilerOptions {
freeCompilerArgs.addAll(
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
"-Xcontext-receivers",
)
}

jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}

tasks.test {
useJUnitPlatform()
useJUnitPlatform {
includeTags("unit", "integration")
}
}

dependencies {
Expand All @@ -34,15 +40,28 @@ dependencies {
implementation(libs.kotlinx.serialization.json)
implementation(libs.kotlinx.serialization.hocon)
implementation(libs.kaml)
implementation(libs.xmlutil)

implementation(libs.flyway.database.postgresql)
implementation(libs.jooq.core)
implementation(libs.postgresql)
implementation(libs.hikari)

implementation("at.favre.lib:bcrypt:0.10.2")
implementation(libs.bouncycastle.bcpkix)

implementation("com.rometools:rome:2.1.0")

// todo: review this dependency
implementation("com.github.dfabulich:sitemapgen4j:1.1.2")

implementation("org.commonmark:commonmark:0.24.0")
implementation("org.commonmark:commonmark-ext-gfm-tables:0.24.0")

implementation("org.jsoup:jsoup:1.18.3")

implementation(libs.komok.tech.to.be.injected)
ksp(libs.komok.tech.di)
implementation(libs.komok.tech.di.lib)
implementation(libs.komok.tech.config.dotenv)
implementation(libs.komok.tech.logging)

Expand Down
2 changes: 1 addition & 1 deletion app-backend/docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# docker-compose -f docker-compose.dev.yml up -d
services:
awesome_kotlin_database:
image: postgres:16.2
image: postgres:17.2
container_name: awesome_kotlin_database
restart: always
mem_limit: 128m
Expand Down
Loading

0 comments on commit 62747ac

Please sign in to comment.