https://kotlinlang.org logo
Title
l

Lou Morda

02/06/2020, 5:32 AM
Here's a very small Kotlin Functional (Kofu) Spring Boot server I wrote: https://github.com/lmorda/kotlin-functional-reactive-users
You can run it locally on your machine just by cloning the repo and running with gradle. Here's a list of the API endpoints: // Users GET("/users", userHandler::listUsersView) GET("/api/users", userHandler::listUsersApi) GET("/api/users/{login}", userHandler::getUserApi) POST("/api/users", userHandler::createUserApi) GET("/sse/users", userHandler::createUserSse) // Messages GET("/messages", messageHandler::listMessagesView) GET("/api/messages", messageHandler::listMessagesApi) GET("/api/messages/{id}", messageHandler::getMessageApi) POST("/api/messages", messageHandler::createMessageApi) GET("/sse/messages", messageHandler::createMessageSse) // Configuration GET("/conf", userHandler::conf)
I think everyone who uses Spring Boot should be migrating to Kofu! But for some reason it hasn't really taken off like it should. Let me know what you think!
I haven't looked at this in awhile but it should be mostly functional!
i

ianbrandt

03/10/2020, 2:51 AM
This looks great, @Lou Morda! There have been some updates since over at https://github.com/spring-projects-experimental/spring-fu. Any chance you'd be up for presenting on it at our April meeting?
l

Lou Morda

04/28/2020, 3:32 AM
Looking forward to presenting next week @ianbrandt if you still need someone!
i

ianbrandt

04/28/2020, 3:48 AM
Hi Lou, Definitely. I'll update the meeting notice. Looking forward to it!