KVision
Object oriented Web UI framework for Kotlin/JS.
KVision allows you to build user interface of modern web applications with the Kotlin language. It's designed to be object oriented in the "most classical" sense - it gives you a hierarchy of many different components, which are used to build application UI.
Unlike most of the popular web UI frameworks (AngularJS, React, Vue.js and others), KVision is not declarative - it is not designed to mix HTML code (or pseudo code) with a typical programming language like JavaScript. In KVision everything is just written in Kotlin, and your code can be reused not by creating any templates, but by using well known OOP design patterns - composition and inheritance.
This design is quite similar to many non-web UI programming libraries including Swing (Java), QT (C++) and WinForms (C#).
KVision is a new project in a development phase. Please create an issue for any bugs or feature requests.
Features
- 100% type safe and fully compiled dev environment.
- Based on Bootstrap styles, typography and components.
- Utilizes Snabbdom fast virtual DOM implementation.
- Integrates with libraries and components from Font awesome, Bootstrap Select (with AJAX extension), Awesome Bootstrap Checkbox, Trix editor, Bootstrap Datetime picker, Bootstrap touchspin and Navigo.
- Includes sophisticated layout containers, including CSS flexbox, CSS grid and Bootstrap responsive 12 columns grid.
- Includes convenient forms implementation, with support for many different input components and easy to use validation.
- Data binding support for observable data model.
- Ready to explore KVision examples are available, built with Gradle and supporting Webpack's Hot Module Replacement (HMR).
- Karma testing framework support.
- IDE support (IntelliJ IDEA Community Edition).
Getting started
-
Download KVision examples from GitHub:
git clone https://github.com/rjaros/kvision-examples.git
-
Enter one of the examples directory:
cd kvision-examples/showcase (on Linux) cd kvision-examples\showcase (on Windows)
-
Run Gradle incremental build with:
./gradlew -t run (on Linux) gradlew.bat -t run (on Windows)
-
Open http://localhost:8088/ in your browser.
Tutorial
{{TBD}}
API documentation
Full API documentation is available at https://rjaros.github.io/kvision/api/.