Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Basic template for web app using Spark with Kotlin

License

Notifications You must be signed in to change notification settings

coconautti/spark-kotlin-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spark for Kotlin

Introduction

Basic template for RESTful web apps using Spark, JDBC, JOOQ, Flyway, and Kotlin.

  • Spark offers a beautiful DSL for writing web apps
  • JDBC for database connection, H2 used as an example
  • JOOQ, because writing SQL by hand is error prone
  • Flyway for database migrations
  • Kotlin, because this project is all about learning Kotlin, after all

This project template was born out of the frustration towards complex and heavyweight web app frameworks that are hard to learn and have long compile-run-test turnaround times. Effort will be put into picking frameworks that are known to perform well in production use. Performance and scalability are key drivers when putting stuff together.

The template is still in its early infancy, so keep an eye out for updates. It might be rolled into a framework of its own later on.

Todo

  • Add Guice
  • Add JOOQ
  • Add JSON response formatter
  • Add H2 JDBC connection
  • Add Flyway
  • Add console logger

Contact

Peter Hägg, peter@coconautti.com

Releases

No releases published

Packages

No packages published

Languages