Example how to set up a Ktor Native server using t...
# server
e
Example how to set up a Ktor Native server using the 2.0.0 EAP releases. https://github.com/ESchouten/KtorNativeServer Slack Conversation
👍 3
h
Would be cool to extend it with some more bells and whistles like database interactions and perhaps tracing, consistent logging. Tests with separation of slow integration tests perhaps? Monitoring/statistics? More meaty in general so that people being more experienced with larger apps in other frameworks can get more reassured that they aren't loosing too much of the convenience stuff if migrating.
e
@Henrik Johansson I would like to support Kotlin native in my Ktor Clean Architecture starter. Main things I think of blocking this is: • Exposed is not multiplatform, though could be replaced with SQLDelight minus the database table creation • No native Graphql server library, could be replaced with REST, or it might be feasible to make KGraphql MPP • Possibly authentication/crypto libs
h
Nice! REST would be a nice start it's by far more common still I think. Exposed looks very cool, what do you mean it's not multiplatform? Auth etc can maybe be restricted to OAuth at first?
e
Exposed only supports JVM, no native targets. Oauth might indeed be a good alternative.
h
Aha you mean non-jvm targets. Is that really used? Or does Android count as non-jvm?
e
Well, this thread is about a Kotlin/Native Ktor server 😜
h
Ah really! I am old on the JVM but fairly new on Kotlin and especially it's Native flavor 🙂
Then I get it! 🙂 The more docs the merrier!