Spring Boot backend application (rest api) for Siemanejro.
- Spring Boot application based on REST architecture style using Basic Authentication.
- Data is fetching from https://www.football-data.org/ using Spring WebFlux Library and saving into MySQL database.
- Both Spring Boot application and MySQL server are running in Docker containers described below.
The Rest Api documentation with description of endpoints is located here:
- Navigate to the root of project directory
- Build the spring-boot application and create docker image by running
mvn clean package
- Run the created docker image and initialize mysql database using docker-compose
docker-compose up -d
Type the following command to ensure that:
- The application is up and running (the response should be just "OK"):
curl localhost:8080/healthCheck
- Admin (user is already in db) has been authorized by application:
curl -u admin:admin localhost:8080/healthCheck/authorized