Hi I'm looking for open source examples of multip...
# javascript
f
Hi I'm looking for open source examples of multiplatform (jvm/js) kotlin code-bases that demonstrate how well kotlin can serve as a language to be consumed by both ecosystems. Anyone aware of some?
f
Hi, it's not a big codebase but in my project https://github.com/Foso/Showdown im using multiplatform to share the model classes i send between the server and the client
👍 1
f
Thanks, I'll check it out
and all kvision fullstack examples from: https://github.com/rjaros/kvision-examples
c
I’m building a realtime app with Ktor websockets on server and client. It’s using a UDF architecture and one particularly nice feature MPP allows me to have, beyond just shared models, is the ability to update the state both on the client and the server. The class definition and other Kotlin metadata allows me to do eager updates to state on the client while the server is processing the actual event on the server. So the client updates immediately, but I have the guarantee that the same updates will eventually be shown to all connected users https://github.com/cjbrooks12/caseyjbrooks http://app.caseyjbrooks.com/apps/babbage/game
I’m basically working to create something like https://boardgame.io/, and while it’s still very early (just a pet project now) I can see a lot of potential with this architecture
j
We just added two full stack examples at https://fritz2.dev using Ktor and SpringBoot. Maybe you want to have a look at the Ktor-example at: https://github.com/jamowei/fritz2-ktor-todomvc