I wanted to build a Portfolio website, as i have b...
# compose-web
m
I wanted to build a Portfolio website, as i have been developing Android apps with Kotlin and Compose, by levraging these tools i have been thinking to build my website using kotlin/webAssm. Is that a Good idea to proceed?
a
IMHO, Compose Multiplatform is not best choice for web page (targeting only web). Compose Multiplatform is great for a complex multiplatform applications, but not for a small web page. You may take a look to Compose HTML, to work with the same Compose, but with the different UI primitives (or to KobWeb, as far as I know it introduces familiar UI primitives). https://github.com/varabyte/kobweb
kodee excited 1
❤️ 1
f
downloading 9mb of wasm, for a simple website? “Aint nobody got time for that”
😅 1
😁 1
I was also thinking of making a portfolio website; But running a JVM webserver can be a hassle. Therefore, I think making a static website could be a great option. Static hosting is cheap and easy to get. Markdown --> Jekyll --> Static website (Sadly no Compose)
👍 1
h
Compose provides a framework to change data/UI over time/for changed data/input. If you don’t need any dynamic content, just use static html.
👍 1
a
@Frank Bouwens, Compose HTML doesn't download any Wasm
👍 1
f
Nice! Kobweb is worth a try
thank you color 1
c
I just open sourced this yesterday which might be of interest: https://github.com/chrismiller/PhotoGallery It uses Ktor on the server side and Compose HTML for the web UI. It's a bit rough around the edges (especially the mapping side of things) and probably not suitable out of the box, but might give you some ideas or a starting point at least.
Note that the server doesn't do anything dynamic really, you could modify it to just write out static json files and then get rid of the server completely
d
Author of Kobweb here. Thank you @Artem Kobzar for the callout. A portfolio site is a great candidate project for Kobweb -- we've had several people create their own in the past. (See for example: https://binayshaw.me/ https://itami-mobile.onrender.com/ https://ayfri.com/ https://kaiqkt.dev/) If you decide to evaluate Kobweb, you can ask questions in #C04RTD72RQ8 and I can generally respond within the same day. (Also, as Frank mentioned, Kobweb + static hosting is a great combo. You can read more about that at this blog post.)
❤️ 2