Tip: Added a `standalone` module to my Desktop pro...
# multiplatform
d
Tip: Added a
standalone
module to my Desktop project that includes both the client & server, and then provides a
main
function to start the Ktor server embedded in the same runtime as the client. It is insanely convenient for development 😂 No more juggling client/server instances to test-drive basic integrations. The whole system runs as one, debugs as one.
👍 1
b
I got this killer setup that I'm quite happy about • Allows running server and client as two separate processes • If the client is built, those files are also served by the server from classpath • Fat jar automatically bundles the client With that you can start the server if you want and work on the backend. Then if you decide you need a client too, tyou can either start a client as a separate instance or just compile it and it will be automatically picked up by the server and served after hot-reload