feat(server): persist accounts and characters in PostgreSQL (#48)

* feat(server): persist accounts and characters in PostgreSQL via jOOQ, HikariCP, and Flyway

* test: reword test names to match the writing style

* docs: explain the database setup and dev seeding
This commit is contained in:
Fiereu authored and GitHub committed 2026-07-21 11:25:21 +02:00
1 parent fb93eb4e5d
commit daf4daf197
50 files changed
+1622 -70

No files matched your search

+6 -1
View File
@@ -4,6 +4,7 @@ plugins {
id("buildsrc.convention.spotless")
id("buildsrc.convention.sonarlint")
id("buildsrc.common.keys")
id("buildsrc.convention.jooq-db")
alias(libs.plugins.ksp)
}
@@ -13,6 +14,8 @@ version = "0.1.0"
application { mainClass.set("de.fiereu.openmmo.server.login.MainKt") }
jooqDb { packageName = "de.fiereu.openmmo.db.login" }
dependencies {
api(project(":network"))
api(project(":protocols.login"))
@@ -33,10 +36,12 @@ dependencies {
tasks.named<JavaExec>("run") {
listOf(
"OPENMMO_SESSION_SECRET",
"LOGIN_DB_HOST",
"LOGIN_DB_PORT",
"LOGIN_DB_NAME",
"LOGIN_DB_USER",
"LOGIN_DB_PASSWORD")
"LOGIN_DB_PASSWORD",
"LOGIN_DB_SEED_DEV")
.forEach { key -> env.fetchOrNull(key)?.let { environment(key, it) } }
}