KVision

Object oriented web framework for Kotlin/JS

License

License

MIT
MIT
Categories

Categories

Micronaut Container Microservices Data
GroupId

GroupId

io.kvision
ArtifactId

ArtifactId

kvision-server-micronaut-metadata
Last Version

Last Version

4.4.0
Release Date

Release Date

Type

Type

module
Description

Description

KVision
Object oriented web framework for Kotlin/JS
Project URL

Project URL

https://github.com/rjaros/kvision
Source Code Management

Source Code Management

https://github.com/rjaros/kvision.git

Download kvision-server-micronaut-metadata

Dependencies

compile (6)

Group / Artifact Type Version
io.kvision : kvision-common-annotations-metadata jar 4.4.0
io.kvision : kvision-common-types-metadata jar 4.4.0
io.kvision : kvision-common-remote-metadata jar 4.4.0
org.jetbrains.kotlinx : kotlinx-serialization-json jar 1.1.0
org.jetbrains.kotlinx : kotlinx-coroutines-core jar 1.4.3
org.jetbrains.kotlin : kotlin-stdlib-common jar 1.4.32

Project Modules

There are no modules declared in this project.

KVision Logo

KVision

Object oriented web framework for Kotlin/JS.

https://kvision.io

CI API IR License: MIT Slack

KVision allows you to build modern web applications with the Kotlin language, without any use of HTML, CSS or JavaScript. It gives you a rich hierarchy of ready to use GUI components, which can be used as builder blocks for the application UI.

KVision fully supports both reactive and imperative programming models. It gives you everything you may need for the state management of your apps.

KVision contains innovative connectivity interface for Ktor, Jooby, Spring Boot, Javalin, Vert.x and Micronaut frameworks on the server side, which allows to build fullstack applications with shared code for data model and business logic.

KVision is being actively developed. Please create an issue for any bugs or feature requests.

Sample code

class App : Application() {

    val state = ObservableValue("Hello world")

    override fun start() {
        root("root") {
            vPanel {
                h1(state) {
                    +it
                }
                button("Add an exclamation mark").onClick {
                    state.value += "!"
                }
            }
        }
    }
}

Features

Examples and documentation

Ready to explore, rich set of KVision examples is available in the separate project.

See also the complete frontend implementation of RealWorld example application and a fullstack version built with Spring Webflux and R2DBC.

The comprehensive KVision guide is published on GitBook.

The API documentation, generated with new Dokka 1.4, is available at https://rjaros.github.io/kvision/index.html.

You can also look at KVision blog posts at dev.to and you can talk with KVision developers on Kotlin Slack #kvision channel.

Quickstart

Development

  1. Download KVision examples from GitHub:

     git clone https://github.com/rjaros/kvision-examples.git
    
  2. Enter one of the examples directory:

     cd kvision-examples/showcase                        (on Linux)
     cd kvision-examples\showcase                        (on Windows)
    
  3. Run Gradle incremental build with:

     ./gradlew -t run                                    (on Linux)
     gradlew.bat -t run                                  (on Windows)
    
  4. Open http://localhost:3000/ in your browser.

  5. Play with the code and see your changes immediately in the browser.

Production

To build complete application optimized for production run:

    ./gradlew zip                       (on Linux)
    gradlew.bat zip                     (on Windows)

Application package will be saved as build/libs/showcase-1.0.0-SNAPSHOT.zip.

Leave us a star

If you like this project, please give it a star on GitHub. Thank you!

Versions

Version
4.4.0
4.3.0
4.2.3
4.2.2
4.2.1
4.2.0
4.1.1
4.1.0
4.0.0