initial commit2

This commit is contained in:
2026-06-12 12:28:00 +03:00
parent 13447b858e
commit 59d33f8061
595 changed files with 11459 additions and 1 deletions
BIN
View File
Binary file not shown.
+7
View File
@@ -0,0 +1,7 @@
# Database
DB_URL=jdbc:postgresql://aklivtsov.tech:5430/prog7_db
DB_USER=mainUser
DB_PASS=superDuperPassword
# JWT
JWT_SECRET=random
+10
View File
@@ -0,0 +1,10 @@
FROM gradle:8-jdk17 AS build
WORKDIR /app
COPY . .
RUN gradle :server:shadowJar --no-daemon
FROM eclipse-temurin:17-jre
WORKDIR /app
COPY --from=build /app/server/build/libs/Lab7-server-1.0-all.jar server.jar
EXPOSE 8080
CMD ["java", "-jar", "server.jar"]
+52
View File
@@ -0,0 +1,52 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version '2.2.0'
id 'org.jetbrains.kotlin.plugin.serialization' version '2.2.0'
id 'com.gradleup.shadow' version '9.3.1'
id 'org.jetbrains.dokka' version '2.2.0'
}
group = 'lab8.prog'
version = '1.0'
repositories {
mavenCentral()
}
shadowJar {
archiveBaseName.set('Lab7-server')
archiveVersion.set('1.0')
manifest {
attributes 'Main-Class': 'MainKt'
}
}
task DMkt(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'database.DatabaseManagerKt'
}
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test'
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.10.0'
implementation 'io.github.microutils:kotlin-logging-jvm:3.0.5'
implementation "io.ktor:ktor-network:3.4.2"
implementation "io.github.oshai:kotlin-logging-jvm:7.0.3"
implementation "org.slf4j:slf4j-api:2.0.13"
implementation "ch.qos.logback:logback-classic:1.5.20"
implementation "io.fusionauth:fusionauth-jwt:6.0.0"
// oh my gawd
implementation "org.jetbrains.exposed:exposed-core:1.2.0"
implementation "org.jetbrains.exposed:exposed-jdbc:1.2.0"
implementation "org.jetbrains.exposed:exposed-dao:1.2.0"
implementation "org.jetbrains.exposed:exposed-java-time:1.2.0"
implementation "org.postgresql:postgresql:42.7.8"
implementation "com.zaxxer:HikariCP:4.0.3"
implementation project(':common')
implementation "org.jetbrains.kotlin:kotlin-test:2.2.0"
}
kotlin {
jvmToolchain(17)
}
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More