https://github.com/prof18/ktor-chuck-norris-sample
A Ktor sample project that returns Random Chuck Norris jokes
https://github.com/prof18/ktor-chuck-norris-sample
Last synced: about 1 year ago
JSON representation
A Ktor sample project that returns Random Chuck Norris jokes
- Host: GitHub
- URL: https://github.com/prof18/ktor-chuck-norris-sample
- Owner: prof18
- Created: 2021-02-28T15:59:44.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-05-21T09:56:33.000Z (about 3 years ago)
- Last Synced: 2025-03-29T09:21:45.480Z (about 1 year ago)
- Language: Kotlin
- Homepage:
- Size: 380 KB
- Stars: 24
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ktor Chuck Norris Sample
A [Ktor](http://ktor.io) sample project that returns Random Chuck Norris jokes.
This project contains all the code used in some articles published on my website.
## 1. Structuring a Ktor project
- Article: https://www.marcogomiero.com/posts/2021/ktor-project-structure/
- Code: [part1 folder](https://github.com/prof18/ktor-chuck-norris-sample/tree/main/part1)
## 2. How to persist Ktor logs
- Article: https://www.marcogomiero.com/posts/2021/ktor-logging-on-disk/
- Code: [part2 folder](https://github.com/prof18/ktor-chuck-norris-sample/tree/main/part2)
## 3. How to use an in-memory database for testing on Ktor
- Article: https://www.marcogomiero.com/posts/2021/ktor-in-memory-db-testing/
- Code: [part3 folder](https://github.com/prof18/ktor-chuck-norris-sample/tree/main/part3)
## 4. How to handle database migrations with Liquibase on Ktor
- Article: https://www.marcogomiero.com/posts/2022/ktor-migration-liquibase/
- Code: [part4 folder](https://github.com/prof18/ktor-chuck-norris-sample/tree/main/part4)
## 5. Generate API documentation from Swagger on Ktor
- Article: https://www.marcogomiero.com/posts/2022/ktor-setup-documentation/
- Code: [part5 folder](https://github.com/prof18/ktor-chuck-norris-sample/tree/main/part5)
## 6. How to schedule jobs with Quartz on Ktor
- Article: https://www.marcogomiero.com/posts/2022/ktor-jobs-quartz/
- Code: [part6 folder](https://github.com/prof18/ktor-chuck-norris-sample/tree/main/part6)
## Ktor 1.6.x
In the [ktor-1.6.x folder](https://github.com/prof18/ktor-chuck-norris-sample/tree/main/ktor-1.6.x), the entire project is implemented with Ktor 1.6.x.
## Ktor 2.x
In the [ktor-2.x folder](https://github.com/prof18/ktor-chuck-norris-sample/tree/main/ktor-2.x), the entire project is implemented with Ktor 1.6.x.
---
The data used for the databases are from the [Chuck Norris IO](https://github.com/chucknorris-io/chuck-db) project.