diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..aeaa135
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,25 @@
+on:
+ push:
+ branches:
+ - main
+jobs:
+ build-backend:
+ defaults:
+ run:
+ working-directory: backend
+ name: Build the application
+ runs-on: ubuntu-22.04
+ concurrency:
+ cancel-in-progress: true
+ group: ${{ github.workflow }}-${{ github.ref }}
+ steps:
+ - name: Checkout the code
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4
+ - name: Setup java
+ uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # ratchet:actions/setup-java@v3
+ with:
+ distribution: temurin
+ java-version: 17
+ cache: gradle
+ - name: Run gradle build
+ run: ./gradlew build --no-daemon
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 0000000..89af8ca
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 0000000..fdc392f
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml
new file mode 100644
index 0000000..fdf8d99
--- /dev/null
+++ b/.idea/kotlinc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..a5d7fc9
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..5b2273d
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workshop-wizard.iml b/.idea/workshop-wizard.iml
new file mode 100644
index 0000000..d6ebd48
--- /dev/null
+++ b/.idea/workshop-wizard.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 9f4b41e..d8b55b9 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,13 @@
# workshop-wizard
+The application for managing workshops of JavaZone. Includes registration, cancellation and all of the good stuff :):)
+
+## Prerequisites
+
+### Backend
+JDK 17
+Docker (or other container runtime)
+
+To start the application: Go to the backend folder and `gradle app:run` or run it through your favorite editor
+
+### Frontend
+TBD
diff --git a/backend/app/build.gradle.kts b/backend/app/build.gradle.kts
index dce3720..dfd0301 100644
--- a/backend/app/build.gradle.kts
+++ b/backend/app/build.gradle.kts
@@ -26,6 +26,7 @@ dependencies {
val logback_version = "1.4.11"
val slf4j_version = "2.0.9"
val kotlin_version = "1.9.0"
+ val logstash_version = "7.4"
// Use the Kotlin JUnit 5 integration.
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
@@ -38,8 +39,9 @@ dependencies {
implementation("io.ktor:ktor-server-content-negotiation:$ktor_version")
testImplementation("io.ktor:ktor-server-test-host:$ktor_version")
- implementation("ch.qos.logback:logback-classic:$logback_version")
- implementation("org.slf4j:slf4j-api:$slf4j_version")
+ runtimeOnly("ch.qos.logback:logback-classic:$logback_version")
+ runtimeOnly("org.slf4j:slf4j-api:$slf4j_version")
+ runtimeOnly("net.logstash.logback:logstash-logback-encoder:$logstash_version")
// Serialization
implementation("io.ktor:ktor-server-content-negotiation:$ktor_version")
diff --git a/backend/app/src/main/resources/logback.xml b/backend/app/src/main/resources/logback.xml
new file mode 100644
index 0000000..0ad1cd7
--- /dev/null
+++ b/backend/app/src/main/resources/logback.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file