Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
----