Making Poker with HTMX: Real time multiplayer using SSR with Kotlin, HTMX and Tailwind

preview_player
Показать описание
I am continuing to explore HTMX with the Kotlin DSL for HTML. I really think this might be the only way I build websites going forward.

I'm pushing it in a weird direction today by building a server side rendered multiplayer game. I'm very happy with the result.

I enjoyed the user experience of using HTMX websocket and HTMX polling. This is a very nice developer experience that lets me build good looking websites quickly. I built this before I started using Tailwind UI but that may be something I look more into in the future.

Software engineering is completely changing and I look forward to a future where I don't have to write JavaScript. Which may be sooner than I expect -- I still need to look into KotlinJS to see what it can actually do.

0:00 - Poker demo
0:53 - Queue demo
1:07 - Explanation
3:03 - Main menu UI
3:37 - Main menu server
4:13 - Queue UI
4:29 - Queue endpoint
4:43 - Game UI
6:48 - Game model
8:00 - Game web-socket
8:44 - Actions menu
9:36 - Final thoughts
Рекомендации по теме
Комментарии
Автор

Can you show the developer experience? Debugging, making changes, seeing the changes update, building, shipping

alexeinunez
Автор

Hi tom, do you have a github account where I can follow you? I would like to be able to see the code in this repository so I can implement something similar myself.
Speaking of another topic, what do you think about compose multiplatform?

braiso_
Автор

Hello really enjoy your videos! I know that you have said before that the code would be available someday, I would love to use it to learn how to implement socket properly, any chance that you can share it? thanks a lot :)

carlosparera
Автор

would be interesting to see how winning combinations are parsed)

kirillvoloshin