Playground for combining kotlin-spark, Thymleaf, custom annotations etc
  • Kotlin 66.9%
  • HTML 17.7%
  • Java 13.4%
  • JavaScript 1.8%
  • Procfile 0.2%
Find a file
2017-08-05 08:51:19 +01:00
gradle/wrapper Gradle changes; attempting to get to deploy on Heroku 2017-07-08 08:39:32 +01:00
src Update to latest version of ThymeleafTemplateEngine. Keeping it in Java for now. Dependency on Java8's DateTime. 2017-08-05 08:51:19 +01:00
.gitignore Don't add .out to the commits :) 2017-07-08 11:15:53 +01:00
build.gradle Update to latest version of ThymeleafTemplateEngine. Keeping it in Java for now. Dependency on Java8's DateTime. 2017-08-05 08:51:19 +01:00
gradlew Gradle changes; attempting to get to deploy on Heroku 2017-07-08 08:37:47 +01:00
gradlew.bat Gradle changes; attempting to get to deploy on Heroku 2017-07-08 08:37:47 +01:00
Procfile Quick hack to enable deleting users from the list 2017-07-19 21:09:32 +01:00
README.md Updated version numbers and readme 2017-07-26 18:35:44 +01:00
settings.gradle Clean up imports after extracting the KMVCSpark annotation stuff 2017-07-07 20:58:58 +01:00

kotlin-spark-routes

Playground for combining kotlin-spark, Thymleaf, custom annotations etc

This is where I play around with Kotlin, kotlin-sparkjava, and other technologies. I'm hoping that this repository will at least compile, if not actually do anything useful.

A running version of the app may be found hosted on Heroku.

For commentary and thoughts on my Kotlin experiments, see my blog.

Goals and technologies:

  • HTTP server through spark-kotlin
  • Page layouts and templating with Thymeleaf; others supported by spark-kotlin may follow later
  • The Dependency Injection framework Kodein - bit of learning curve
  • Database handling and ORM with JetBrain's own Exposed, which is odd but interesting
  • Reflection and annotation processing
  • Unit testing with JUnit and nhaarman's Kotlin Mockito
  • Making it pretty through Materializecss

I'm avoiding all the traditional big hitters for Java - Spring Boot, Hibernate, JSF2, JSP - as I want to learn more about alternative approaches. I'd like to use as much Kotlin as possible, but I'm not dogmatic about it. Java libraries are allowed.