From e79b4279391333d117e369ced94dba2610362c79 Mon Sep 17 00:00:00 2001 From: Moritz Kowalski Date: Thu, 3 Apr 2025 11:51:23 +0200 Subject: [PATCH] Add README --- README.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..3891fd4 --- /dev/null +++ b/README.md @@ -0,0 +1,58 @@ +# KickerELO + +KickerELO is a web application for displaying Elo ratings for foosball (table soccer) games. +It uses **Spring Boot** for the backend, **Vaadin** for the frontend, and **MariaDB** as the database. + +## Requirements + +- **Java 23** or later +- **Maven** (if not integrated) +- **MariaDB** (for production use) + +## Installation + +### 1️⃣ Clone the repository +```sh +git clone https://github.com/your-repo/kickerelo.git +cd kickerelo +``` + +### 2️⃣ Set up the database + +- **For testing**: No database setup is required, as an H2 in-memory database is used by default. +- **For production**: The application requires MariaDB. If MariaDB is already installed, make sure the database and +credentials are correctly configured in `application.properties`. + +If you don't have MariaDB installed, you can quickly start a database using Docker: + +```sh +docker run --name kickerelo-db -e MYSQL_ROOT_PASSWORT=root -e MYSQL_DATABASE=kickerelo -p 3306:3306 -d mariadb:latest +``` + +### 3️⃣ Build the project + +To generate the file `target/kickerelo.jar`: + +```sh +mvn clean package +``` + +### 4️⃣ Run the application + +- For testing (default): + +```sh +mvn spring-boot:run +``` + +- For production (requires MariaDB): + +```sh +mvn spring-boot:run -Dspring-boot.run.profiles=production +``` + +Alternatively, you can run the built .jar file: + +```sh +java -jar target/kickerelo.jar +```