Are there any sample compose-web project with a se...
# compose-web
e
Are there any sample compose-web project with a server-side component? Can a compose-web application be served from a ktor-instance that also handles incoming REST calls for instance? Most examples I found were "client-only" 🙂
e
Thanks 🙏
b
Currently in "production" and frontend being served as standalone to make better use of CDN. However it's also reachable from ktor server as well.
https://kamp.azurewebsites.net/ is served from ktor(along with rest api) https://kamp.petuska.dev is served as a standalone
Both built from same source/repo
compose-web is just another webapp and can be served in exactly the same approaches as react or angular apps
e
awesome, this was just what I was looking for 😄 have a lot of things been breaking between releases so far?
b
There was just one I remember where they moved around lits of packages
s
Is there a way to throw autoreload into the mix here? Proper autoreload for changes made in both the server and the compose client would be nice
c
@Skovisen read the Kotlin docs for JS auto reload, and the Ktor docs for server auto reload. I don't really recommend auto reload with the server serving Kotlin JS though, because that will ruin your compilation time.
b
My sample above has autoreload for both