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: 3 months 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 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-27T09:58:16.000Z (almost 7 years ago)
- Last Synced: 2026-01-03T16:33:40.918Z (6 months ago)
- Topics: docker, docker-compose, gradle, kotlin, ktor, netty, shadow
- Language: Dockerfile
- Size: 79.1 KB
- Stars: 4
- Watchers: 1
- 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
----