Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 2.79 KB

README.md

File metadata and controls

74 lines (56 loc) · 2.79 KB

Java CI with Gradle

Sample application showing how htmx teams up with javalin so i can compare with this one

Dependencies

  • java 17 or newer
  • kotlin 1.9
  • jdbi 3.44
  • htmx 2.x
  • apache velocity 2.3
  • spock 2.3

A good kotlin ide is also recommended.

How to build

We have shadow jar plugin to ease runnable jar creation

./gradlew shadowJar

How to run

We have application plugin to ease runnable jar creation options

./gradlew run

Alternatively, run the jar built in previous step:

java -jar build/libs/sample-htmx-javalin-1.0-SNAPSHOT-all.jar

Noteworthy

Next steps

  • Add a filter in the template. Backend already supports the 'q' parameter
  • Find a good form to object mapper would be handy. Javalin has validators but besides that, form to model mapping is pretty much manual
  • Setup docker image building and registry publishing