your super simple private serverless service running your kotlin (1.1-M04) functions like aws lambda
kiny compiles your kotlin function on the fly and attaches it to a route
HTTP server and routing via vert.x
you can find a demo instance at https://kiny.herokuapp.com/console
./gradlew assemble
java -jar build/libs/kiny-1.0-SNAPSHOT.jar
open http://localhost:9090/console in your browser
by simply posting a JSON to /add
curl -d '{
"name": "bar",
"code": "import io.vertx.core.json.JsonObject;fun handle(request: JsonObject): JsonObject { return JsonObject().put(\"status\", 200).put(\"body\", \"hello world!!\")}"
}' http://localhost:9090/add
use the created function, you can use all HTTP methods e.g. GET
curl http://localhost:9090/fn/bar
kiny is highly experimental