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:
1 parent
fb93eb4e5d
commit
daf4daf197
50 files changed
+1622
-70
No files matched your search
@@ -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.game.MainKt") }
|
||||
|
||||
jooqDb { packageName = "de.fiereu.openmmo.db.game" }
|
||||
|
||||
dependencies {
|
||||
api(project(":network"))
|
||||
api(project(":protocols.game"))
|
||||
@@ -34,10 +37,12 @@ dependencies {
|
||||
tasks.named<JavaExec>("run") {
|
||||
listOf(
|
||||
"OPENMMO_SESSION_SECRET",
|
||||
"GAME_DB_HOST",
|
||||
"GAME_DB_PORT",
|
||||
"GAME_DB_NAME",
|
||||
"GAME_DB_USER",
|
||||
"GAME_DB_PASSWORD")
|
||||
"GAME_DB_PASSWORD",
|
||||
"GAME_DB_SEED_DEV")
|
||||
.forEach { key -> env.fetchOrNull(key)?.let { environment(key, it) } }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user