/spring-kotlin-angular-demo

Spring 5, Spring Boot 2, Kotlin, Angular, Gradle demo

Primary LanguageJavaScript

Spring 5 Kotlin Angular demo

TravisCI Build

This project is designed to demonstrate new Spring 5 WebFlux Framework with Kotlin and Angular 4.

Client npm dependencies status:

dependencies Status devDependencies Status

Technology stack
  • Spring Framework 5
  • Spring Boot 2.0.0
  • Spring WebFlux
  • Kotlin 1.1.51
  • Gradle 4
  • Angular 4
  • Webpack 3
Prerequisites
  1. Gradle 4
  2. Docker
  3. Node + npm

Build

use ./gradlew instead of gradle if you didn't installed gradle

Dev mode
# build Spring Boot server application
gradle server:build
# install Angular client dependencies
gradle client:npm_install
Production mode
# build Spring Boot server application
gradle server:build
# install Angular client dependencies and run AoT compilation
gradle client:npmProdBuild

Run

use ./gradlew instead of gradle if you didn't installed gradle

Start server

# as a Java application
gradle server:bootRun
# as a Docker image
gradle server:docker

Start client in development mode using webpack-dev-server

gradle client:npmStart

Start client in production mode using Nginx inside Docker container

gradle client:docker