To run without docker
- Import the application as maven project and run as spring boot application.
- Once build is completed - goto localhost:8080/swagger-ui.html for checking counter controller.
To run with docker
- Clone the repo
- build using, spring buildpacks - ./mvnw spring-boot:build-image
- Once we see message : Successfully built image 'docker.io/library/counter:0.0.1-SNAPSHOT'
- Run :- docker run -p 8080:8080 docker.io/library/counter:0.0.1-SNAPSHOT, make sure no other process is running on port 8080 of host machine, if its running then modify XXXX - with any free port on the machine - docker run -p XXXX:8080 docker.io/library/counter:0.0.1-SNAPSHOT
- In browser - open localhost:XXXX/swagger-ui.html - XXXX is the choosen port address here