Settings

Theme

Kotlin Static Site Deployment with Kobweb

bitspittle.dev

4 points by alwaysdoit 4 years ago · 1 comment

Reader

bitspittle 4 years ago

Hey, author here. I'm new to Hackernews so my friend posted the link, but I'd be happy to answer any questions.

For some background: Kobweb is built on top of Compose for Web, which is a fairly recent, official, reactive UI framework written in Kotlin. I know that frontend development in Kotlin is still early days yet, but I personally love what JetBrains is trying to do here.

Compose for Web is really neat tech, but there are many decisions it leaves up to the programmer (by design). I'm using Kobweb to add in some opinionated solutions, such as handling routing, client/server communication, color mode support, and (relevant to this post) static site exporting.

Perhaps the best analogy would be I'm writing something like Next.js for React, but in the world of Kotlin.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection