Posts

Showing posts with the label kotlin

Vaadin + Kotlin CRUD example

Image
Hello everyone, today we will learn how to develop a full-stack web application that is a basic  User Management Application  using Kotlin, Vaadin, Spring, and JPA. Vaadin is the only framework that allows you to write UI 100% in Java without getting bogged down in JS, HTML, and CSS. If you prefer, you can also create layouts in HTML or with a visual designer. Vaadin apps run on the server and handle all communication automatically and securely. GitHub repository link is provided at the end of this tutorial. You can download the source code. Following technologies stack being used: Spring Boot 2.5.5 Kotlin Vaadin 14.7.0 Maven 3 npm package manager H2DB After completing this tutorial what we will build? We will build a full-stack web application that is a basic User Management Application with CRUD features:     • Create User     • List User     • Update User     • Delete User     • View User Following is the User Interface of our application - Let's begin building the application,

Kotlin + Spring Boot + Mustache + JPA - CRUD example

Image
Hello everyone, Today we will learn how to develop a Spring Boot CRUD web application, using Kotlin, Spring Boot, Mustache template, H2DB, and JPA. Following technologies stack being used: Spring Boot 2.5.5 Spring MVC 5.3.10 Gradle Kotlin Mustache 1.15 H2DB  Bootstrap Project Structure: Project Dependency(build.gradle.kts) import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id( "org.springframework.boot" ) version "2.5.5" id( "io.spring.dependency-management" ) version "1.0.11.RELEASE" kotlin( "jvm" ) version "1.5.31" kotlin( "plugin.spring" ) version "1.5.31" kotlin( "plugin.jpa" ) version "1.5.31" } group = "com.knf.dev.demo" version = "0.0.1-SNAPSHOT" java.sourceCompatibility = JavaVersion.VERSION_11 repositories { mavenCentral() } dependencies { implementation( "org.springframework.boot:spring-boot-starter-data-jpa" )

Kotlin + Spring Boot + FreeMarker + JPA - CRUD example

Image
Hello everyone, Today we will learn how to develop a Spring Boot CRUD web application, using Kotlin, Spring Boot, FreeMarker template, H2DB, and JPA. Following technologies stack being used: Spring Boot 2.5.5 Spring MVC 5.3.10 Gradle Kotlin FreeMarker 2.3.31 H2DB  Bootstrap Project Structure: Project Dependency(build.gradle.kts) import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id( "org.springframework.boot" ) version "2.5.5" id( "io.spring.dependency-management" ) version "1.0.11.RELEASE" kotlin( "jvm" ) version "1.5.31" kotlin( "plugin.spring" ) version "1.5.31" kotlin( "plugin.jpa" ) version "1.5.31" } group = "com.knf.dev.demo" version = "0.0.1-SNAPSHOT" java.sourceCompatibility = JavaVersion.VERSION_11 repositories { mavenCentral() } dependencies { implementation( "org.springframework.boot:spring-boot-starter-data-jpa"