Skip to content

WarwickGoatee/kotlin-app-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kotlin App Template

This is a repository to be used as a template for Kotlin applications. Batteries are included: you get Warwick SSO authentication, roles/groups, masquerading, frontend asset compilation, ID7 and other goodies out of the box.

Also includes:

  • GitHub Actions CI
  • Docker (with docker-compose)

The application itself is based upon Spring Boot with Kotlin. Hibernate is used for persistence. Database migrations are handled by Flyway. FreeMarker is the template language. Authentication is provided via SSO Client and authorisation is managed by Spring Security.

Getting started

  1. Copy application-example.yml to application.yml and replace the example PostgreSQL database details with your own
  2. Copy external-conf/example-sso-config-example.xml to external-conf/example-sso-config.xml and add your own details
  3. Run ./gradlew bootRun to install dependencies, build assets and compile and run the application
  4. Run ./gradlew test to run the tests

Origin

Most of the template has been extracted from CAMCAT (the Course and Module Catalogue), with the groundwork performed by Alec.

Additions include GitHub CI, Docker and security headers.

About

Template for future Kotlin applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors