Skip to content

vellrya/javalin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat at https://gitter.im/javalin-io/general

Javalin - A Simple REST API Library for Java/Kotlin

The project webpage is javalin.io.

Java quickstart

Add dependency (maven)

<dependency>
    <groupId>io.javalin</groupId>
    <artifactId>javalin</artifactId>
    <version>0.5.2</version>
</dependency>

Start programming:

import io.javalin.Javalin;

public class HelloWorld {
    public static void main(String[] args) {
        Javalin app = Javalin.start(7000);
        app.get("/", ctx -> ctx.result("Hello World"));
    }
}

Kotlin quickstart

Add dependency (gradle)

compile 'io.javalin:javalin:0.5.2'

Start programming

import io.javalin.Javalin

fun main(args: Array<String>) {
    val app = Javalin.start(7000)
    app.get("/") { ctx -> ctx.result("Hello World") }
}

Special thanks

About

A Simple REST API Library for Java/Kotlin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 60.4%
  • Kotlin 39.4%
  • Other 0.2%