This example is based on the according Udemy course.
I added some other features:
- iBatis (works with SQLite or Postgres-DB)
- JWT support
- KTor
- AutoRefresh (see below)
# cd to DB-Directory
cd resources/db
# Import schema (Postgres works just fine here)
sqlite catshostel.db < sqlite-1-schema.sql
Set your working dir to
gradle run
KTOR.io - WebSockets
Chat-Example
How to implement a chat with WebSockets
# Erstellt das JAR
gradle shadowJar
You need Java > 8 for this
# Consol-Windows 1
gradle -t installDist
# Consol-Windows 2
gradle run
To setup a user with KeyCloak follow one of these tutorials: