Is the a full kotlin framework for a webapp (front...
# getting-started
p
Is the a full kotlin framework for a webapp (frontend+backend) exist? Can I host such apps somewhere for fully free? (just to test them, or for domestic use?) Like deno.dev for Deno (js).
r
Yes. #kilua, #kvision, #kobweb
You can run JVM backend for free e.g. on Render.com free tier.
👍 1
p
Thanks. Which one would you rather pick for a beginner?
r
I'm the author of both Kilua and KVision so I'm a bit biased here 😉
😄 1
p
Then what motivated you to create two frameworks? Then I will get authentic answer to decide between those two.
r
KVision was created long time ago when Kotlin for web was just emerging. Kilua is a kind of successor, created with modern libraries.
KVision is stable and quite well documented. Kilua is still changing a lot and documentation is missing. But technically Kilua it's definitely better than KVision.
j
I would offer also #http4k - its more "backend" perhaps, but also maybe you dont need an SPA, and there are fully integrated things for datastar and htmx for fully dynamic sites. (I contribute a little to http4k, so also slight bias probably)
r
And Kobweb is probably most popular nowadays, but it is based on Compose HTML, which lacks some features important for me (like full SSR).
p
And what about kmp's beta support for web? How will it change the map?
r
You asked for fullstack solutions. Compose Web is frontend only.
p
oh, ok, so kmp won't change the possibilities
r
You can always do fullstack yourself, just pick some plain frontend framework and some backend framework (Ktor, Spring, http4k, Micronaut, Quarkus). There is Kotlinx RPC which can help you to glue both (and also Kilua RPC - another of my creations 😉).
h
What’s your definition of a „full kotlin framework“? What do you really need? Kotlin is only a language, you ask for an architecture decision.
p
Yes, I'd like to offload decisions. Looking for a one-step solution, like django for python, or meteor for the js world. Backend, frontend and persistence solved.
Does render provide some kind of persistency? (I guess no, so one should search for some free postgres hosting) So, to set up a "simple" app, so many ceremony...
j
Less is more. Don't pick the technology before picking what you want to do. Once you've got an idea about what your "thing" might want to do, and what constraints that means... then you'll have a better idea about the technology bits that can meet those constraints.
There is no one-size-fits-all tech stack of everything... just choose the things that work well for you, and for what you want to do.
c
I use a full-Kotlin stack for Web - Compose Web (wasm) and Ktor (JVM). You can use other engines within Ktor if you absolutely don't want your server to use the JVM, but the server environment doesn't really matter for this question - it's still a 'full-Kotlin' stack. The idea of a single framework for front- and backend combined is usually a huge compromise, but I can understand wanting a simple environment for prototyping. I use GitHub Pages to host my prototypes at work - the prototype itself (Compose Web) is a static web page, and only relies on external APIs, so doesn't require a running backend. A simple backend could be added with Firebase or similar - still leaving you with a static frontend and external backend. If the backend you need is too complex for a solution like Firebase, I strongly encourage using a dedicated framework for backend.