This is a Java Spring Boot application that manages table tennis tournaments. It allows you to create tournaments, add players, manage matches, and retrieve tournament information.
-
Create a new tournament
-
Add players to a tournament
-
Retrieve all tournaments
-
Retrieve a specific tournament by ID
-
Retrieve all game tables of a specific tournament
-
Retrieve all matches of a specific tournament
-
Update the state of a tournament
-
Brackets (single elimination)
- Generate brackets for a tournament
- Retrieve a specific bracket by ID
- Retrieve all matches of a specific bracket
- Update the state of a bracket
- Java 11 or higher
- Maven
- PostgreSQL
- Clone the repository:
git clone https://github.com/LuminiteTime/Tournament-Microservice.git
- Navigate to the project directory:
cd Tournament-Microservice
- Build the project using Maven:
mvn clean install
- Configure your PostgreSQL database detailes according to the
src/main/resources/application.properties
file.
spring.datasource.url=jdbc:postgresql://localhost:5432/tournaments
spring.datasource.username=postgres
spring.datasource.password=postgres
- Run the application:
mvn spring-boot:run
The API documentation is available at /swagger
endpoint when the application is running.
This project is licensed under the MIT License.