5
0
mirror of https://github.com/AJMicke/KickerELO.git synced 2026-03-11 13:31:02 +01:00
Files
KickerELO/README.md
2025-04-03 11:53:42 +02:00

59 lines
1.3 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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_PASSWORD=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
```