PetClinic (Kotlin/Spring 5/Reactive)
June 29, 2017 ยท View on GitHub
Description
PetClinic application using Kotlin, Spring 5 with the reactive APIs (Reactor). You can find the related blog here.
Technologies used
- Language: Kotlin
- Web framework: Spring Boot and Spring Web Reactive Functional
- Engine: Netty used for client and server
- Reactive API: Reactor
- Persistence : Spring Data Reactive MongoDB
- Build: Gradle Script Kotlin
- Testing: Junit
Run the app in dev mod using command line
- Run
./gradlew bootRunin another terminal - Open
http://localhost:8080/in your browser - If you want to debug the app, add
--debug-jvmparameter to Gradle command line
Package and run the application from the executable JAR:
./gradlew clean build
java -jar build/libs/petclinic-spring5-kotlin-1.0.0-SNAPSHOT.jar
TODO
- Validation on save/edit
- Error handling (what happens when an entity is not present in the db)