Skip to content

ChrisKruegerDev/kotlin-express

Repository files navigation

Maven Central Kotlin Gradle GitHub License

kotlin-expess

A Kotlin wrapper for JavaScript express library.

Adding to your project

The library is published to Maven Central.

Gradle

Add the Maven Central repository if it is not already there.

repositories {
    mavenCentral()
}

To use the library in a single-platform project, add a dependency.

dependencies {
    implementation("dev.chriskrueger:kotlin-express:1.1.1")
}

Example

val app = express()
app.get("") { _, res ->
    res.status(200).send("hello")
}