Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonarhipov/ktor-native-image
Ktor GraalVM naive image example
https://github.com/antonarhipov/ktor-native-image
Last synced: about 2 months ago
JSON representation
Ktor GraalVM naive image example
- Host: GitHub
- URL: https://github.com/antonarhipov/ktor-native-image
- Owner: antonarhipov
- Created: 2024-06-04T14:27:59.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-07T13:49:53.000Z (7 months ago)
- Last Synced: 2024-06-07T21:10:43.332Z (7 months ago)
- Language: Kotlin
- Size: 66.4 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Ktor GraalVM native image example
Run:
```shell
./gradlew clean nativeCompile
```
The native binary is generated to `./build/native/nativeCompile/graalvm-server`Run:
```shell
./build/native/nativeCompile/graalvm-server
```
```
2024-06-04 17:26:19.378 [main] INFO ktor.application - Autoreload is disabled because the development mode is off.
2024-06-04 17:26:19.382 [main] INFO ktor.application - Application started in 0.005 seconds.
2024-06-04 17:26:19.387 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://0.0.0.0:8080
```Run:
```shell
curl localhost:8080
```
```
Data(id=324, title=Hello, description=This is the response)
```