A Restful CRUD API for book management using Spring Boot 2.x , Spring Data JPA,Hibernate,H2-database and Swagger documentation with containerization using Docker.
Steps for executing :
-
Download the repository.
-
Open the project in the IDE (Netbeans/Intellij Idea/Eclipse) and open the mvnw.cmd in terminal.Execute the below command to build the image.
mvnw.cmd spring-boot:build-image
-
Execute the below command to run the container.
docker run -p 8080:8080 bookservice:0.0.1-SNAPSHOT
-
Run the below command to get the list of running containers.
docker ps
- Open the browser and navigate to below url to get the info about the available endpoints.
http://localhost:8080/swagger-ui/index.html
Supporting screenshorts of the working API: