5
0
mirror of https://github.com/AJMicke/KickerELO.git synced 2026-03-11 13:31:02 +01:00

Add README

This commit is contained in:
2025-04-03 11:51:23 +02:00
parent 5409067226
commit e79b427939

58
README.md Normal file
View File

@@ -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
```