Run mysql database by following instructiosn in the mysql docs
Then build the project with mysql support:
mvn clean install -Pmysql
Or run with spring boot:
mvn -Pmysql spring-boot:run -Dspring.profiles.active=mysql
Or to build for kubernetes (and skip Integration tests)
mvn clean install -Pmysql,kubernetes
A curl command you can use to test everything:
curl -X POST -H "Content-Type: application/json" -d "{\"ticketRequests\":[{\"ticketPrice\":4,\"quantity\":3}],\"email\":\"[email protected]\",\"performance\":1}" http://localhost:8080/rest/bookings