Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daggerok/kotlin-ktor
This repository contaons kotlin ktor example
https://github.com/daggerok/kotlin-ktor
docker docker-compose gradle kotlin ktor netty shadow
Last synced: 28 days ago
JSON representation
This repository contaons kotlin ktor example
- Host: GitHub
- URL: https://github.com/daggerok/kotlin-ktor
- Owner: daggerok
- Created: 2017-11-05T15:30:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-27T09:58:16.000Z (over 5 years ago)
- Last Synced: 2024-11-11T15:39:04.480Z (3 months ago)
- Topics: docker, docker-compose, gradle, kotlin, ktor, netty, shadow
- Language: Dockerfile
- Size: 79.1 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= ktor image:https://travis-ci.org/daggerok/kotlin-ktor.svg?branch=master["Build Status", link="https://travis-ci.org/daggerok/kotlin-ktor"]
This repo contains yet another light web framework for kotlin
.rest api
[source,bash]
----
http :8080{
"message": "hello!"
}
----.docker-compose
[source,bash]
----
bash gradlew build
docker-compose up
# query rest api...
docker-compose down -v
----.docker
[source,bash]
----
bash gradlew build
docker build -t ktor .
docker run --rm --name ktor -p 8080:8080 ktor
java -jar build/libs/*.jar
----.build and run (gradle shadow plugin)
[source,bash]
----
bash gradlew build
ava -jar build/libs/*.jar
----.quickstart (application plugin)
[source,bash]
----
bash gradlew run
----