Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.26 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.26 KB

Kotlin + Reactive Spring Fu (Functional) + Reactive Mongo DB example

More info: https://github.com/spring-projects/spring-fu

Status

Build Status

Endpoints

Server: http://localhost:8080

    GET("/", simpleHandler::main)
    GET("/hello", simpleHandler::hello)
    GET("/hello-event", simpleHandler::helloEvent)
    GET("/date", simpleHandler::date)

    GET("/api/user", userHandler::findAll)
    POST("/api/user", userHandler::new)
    GET("/api/user/{id}", userHandler::findById)
    PUT("/api/user/{id}", userHandler::update)
    DELETE("/api/user/{id}", userHandler::delete)

Download

    git clone https://github.com/wojciech-zurek/kotlin-spring-fu-mongo-example.git

Run with gradle

    cd kotlin-spring-fu-mongo-example/
    ./gradlew run

Run as jar file

    cd kotlin-spring-fu-mongo-example/
    ./gradlew shadowJar
    java -jar build/libs/kotlin-spring-fu-mongo-example-all.jar

Test

    cd kotlin-spring-fu-mongo-example/
    ./gradlew cleanTest test