Skip to content

wojciech-zurek/kotlin-spring-fu-mongo-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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