https://kotlinlang.org logo
#micronaut
Title
# micronaut
r

Robert Jaros

08/08/2020, 10:36 AM
If anyone is interested, here is an example fullstack Micronaut 2.0.1 project, with Kotlin Gradle DSL, JVM and JS targets, working Kapt processing and hot reload in dev mode: https://github.com/rjaros/kvision-examples/blob/master/template-fullstack-micronaut/
👍 7
d

dave08

02/16/2021, 11:57 AM
Just wondering, after having looked at a bunch of possibilities, could kvision be used to create a React-first app, just using kvision for the api requests and micronaut integration? Does this make sense, or maybe I'm misunderstanding kvision?
I just browsed through the react docs, but it seems that only individual components are being used there, with a kvision-first approach.
r

Robert Jaros

02/16/2021, 12:18 PM
Generally you can use KVision Micronaut integration without KVision. See: https://kvision.gitbook.io/kvision-guide/part-3-server-side-interface/external-usage
You could probably also wrap the whole Kotlin-React application inside KVision, but it would be just wasting resources 🙂
d

dave08

02/16/2021, 12:23 PM
Thanks! I'll take a look at the external usage option.
r

Robert Jaros

02/16/2021, 12:25 PM
The example app of external usage is for Ktor and doesn't use KVision compiler plugin. Unfortunately I don't have anything better.
But if you have any questions feel free to ask
👍🏼 1
10 Views