Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bog-walk/kotlin-conf-2024-dbms-demo
:rocket: Docking bay manager desktop app backed by Exposed and Ktor.
https://github.com/bog-walk/kotlin-conf-2024-dbms-demo
compose-for-desktop exposed kotlin ktor
Last synced: 7 days ago
JSON representation
:rocket: Docking bay manager desktop app backed by Exposed and Ktor.
- Host: GitHub
- URL: https://github.com/bog-walk/kotlin-conf-2024-dbms-demo
- Owner: bog-walk
- Created: 2024-05-27T22:55:36.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-05-27T23:08:54.000Z (5 months ago)
- Last Synced: 2024-10-08T23:21:52.793Z (28 days ago)
- Topics: compose-for-desktop, exposed, kotlin, ktor
- Language: Kotlin
- Homepage:
- Size: 2.14 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# :star::rocket: Docking Bay Management System
This is a sample Kotlin Multiplatform desktop project accompanying the [KotlinConf 2024 introductory talk](https://kotlinconf.com/speakers/aa4f4219-1d5a-4d23-bcb3-42284ff37fb0/#Exploring%20the%20Exposed%20Library:%20A%20Kotlin%20Solution%20to%20Database%20Access) for the [Exposed library](https://github.com/JetBrains/Exposed).
![](screenshots/dbms_demo.gif)
## Run Desktop Application
* Run Ktor Gradle task `buildFatJar`
* Run `docker compose up`
* The server responds at http://127.0.0.1:8080 to check routes, if needed.
* See details about the Ktor server application in the `server` module
* See details about the Ktor HttpClient in the `common/commonMain/client` package
* Once the server has started, run `Main.kt` from the `desktop` module**Note** that the default data access approach is set to the Domain Specific Language (DSL) approach.
This can be changed to the Data Access Object (DAO) approach in `application.conf` by commenting out the desired `dataAccess` property.**Note** that the server will automatically shut down as a part of the application exit process.