I need a very quick dive into “the server world” w...
# server
t
I need a very quick dive into “the server world” with Kotlin. We need to build an internal tool that’s gotta be in the browser, for various reasons (so Compose Multiplatform is not an option 🥲). We’ll probably use htmx, Tailwind UI & friends. I’m mainly an Andorid dev (& iOS sometimes). I also have some web exp, but I’d rather not use JS as much as possible 😅. I’m very new into the JVM-server-side, so I have some open questions about tools & such, mainly about the web part. I need a HTML templating setup, something like Go’s templ . How are folks solving this?
l
i just wrote an article on it a few days ago. https://sombriks.com/blog/0067-you-should-try-htmx/ on this stack i used javalin and velocity, but you can go spring-boot and thymeleaf with no major issues. sample code here: https://github.com/sombriks/sample-htmx-javalin
👀 1
🙏 1
h
There is also Compose HTML
j

https://www.youtube.com/watch?v=9OYn48xBzOY

goes over how to use htmx with kotlinx-html which is a nice combo w/Tailwind. I'm using pretty much the same thing but also with Alpine.js for the few bits of JS I do actually need.
👍 1
c
if it's just an internal tool - you could try being an early adopter of kotlin/wasm and compose-web?! https://github.com/Kotlin/kotlin-wasm-examples/tree/main/compose-imageviewer#compose-multiplatform-for-web
t
As I said in the initial post, it can't be Compose or any other fancy tech like the ktor html DSL, just good old HTML (a frontend colleague needs to jump in and get things done fast). I've played with Spring Boot, Quarkus and another one. Spring has sooo much magic and rubberducking, like I don't see how it's safer than a nodejs server lol. I'll give it one more try, but just accepting smth like astro.build is just... more sane.