https://github.com/jesperancinha/library-books
Book searcher
https://github.com/jesperancinha/library-books
java junit junitparallel kotlin kotlin-channels kotlin-coroutines kotlin-flows kotlin-parallel ktor parallel test testing
Last synced: 7 months ago
JSON representation
Book searcher
- Host: GitHub
- URL: https://github.com/jesperancinha/library-books
- Owner: jesperancinha
- License: apache-2.0
- Created: 2023-01-25T09:28:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-04T18:09:11.000Z (8 months ago)
- Last Synced: 2025-03-04T18:32:50.512Z (8 months ago)
- Topics: java, junit, junitparallel, kotlin, kotlin-channels, kotlin-coroutines, kotlin-flows, kotlin-parallel, ktor, parallel, test, testing
- Language: Kotlin
- Homepage: https://joaofilipesabinoesperancinha.nl/
- Size: 66.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# library-books
Book searcher.
This runnable uses the Books Google API to make searches about books. It's a simple coroutine project.
## Project structure
- [backend-java](backend-java) - under construction
- [backend-kotlin](backend-kotlin)## How to start
Make sure to have JDK17 installed before continuing.
I suggest using [SDK-MAN](https://sdkman.io/)##### 1. Kotlin version
1. Run the build with the make file or just run `mvn clean install`:
```shell
make b
```2. Run with `java -jar backend-kotlin/target/backend-kotlin.jar` or just run:
```shell
make run
```## Running examples
```shell
curl http://localhost:8080/?query=coming%20out&language=nl
```
```shell
curl http://localhost:8080/?query=Metallicat&language=nl
```
```shell
curl http://localhost:8080/?query=Kabeljauw&language=nl
```
```shell
curl http://localhost:8080/?query=Kaas&language=nl
```## Running Docker
You can also run docker to get the application running by running `docker-compose up -d` or:
```shell
make dcup
```## References
- [Google Books API V1](https://developers.google.com/books/docs/v1/using)
- [Spring Boot Caching](https://www.javatpoint.com/spring-boot-caching)## About me
[](https://github.com/jesperancinha)