This is a spring boot personal study project base on the sakila sample database.
I will continuous improvement this project when I'm free.
- Spring Tools 4
- MySQL 8
- Java 17
- Gradle 7
- Spring boot 2.6
- Springdoc 1.6 and Swagger 3
- JUnit 5
- Lombok 1.8
- Docker Compose 3
- Get the source code
$ git clone git@github.com:jtcheng/sakila.git
- Startup the database
$ docker-compose -f compose.yaml up -d
# or (need new version of docker)
$ docker compose -f compose.yaml up -d
- Build and run the JUnit5 tests
$ ./gradlew clean build
- Startup the application
$ ./gradlew bootRun
- Access the Swagger UI (check the APIs)
http://localhost:8080/sakila/swagger/ui.html
- Stop the database (if need)
$ docker-compose -f compose.yaml down
# or (need new version of docker)
$ docker compose -f compose.yaml down