An open API service indexing awesome lists of open source software.

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

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.