Hi all. New to the JS party. Who can point me to a...
# javascript
n
Hi all. New to the JS party. Who can point me to a working tutorial for a Spring Boot Backend with Kotlin JS Frontend?
r
Not exactly a tutorial, but you can build fullstack apps with KVision and Spring Boot. You can find examples https://github.com/rjaros/kvision-examples and the guide https://kvision.gitbook.io/kvision-guide/part-3-server-side-interface
s
How about react Kotlin + spring boot backend?
👍 2
b
Just have your fronted as separate gradle module and copy its distribution over to WEB-INF when building spring fat jar.
Even better yet, have a mpp project with spring and react source sets. This way you can even share domain objects when implementing rest calls
For an example setup have a look at https://gitlab.com/lt.petuska/hazelcast-explorer
👍 1
Just replace ktor with spring boot on the backend and add kotlin spring plugins
n
thank you, I think React Kotlin suits me best - I just had the impression that the official tutorial is deprecated and wasn't sure if the approach in general would be still state of the art.
@Big Chungus the project is very helpful, thanks
👍 1
b
Glad to hear it. PM me if you have any more queries regarding setup.
n
thanks