- Motivated to learn and develop CRUD Services using springboot application
- Springboot : actuator, checkstyle
- Maven
- Docker
- git
- Jenkins pipeline
- micrometer
- prometheus
- Swagger documentation
- actuator
- Github action on push to master branch
- GET Ticket
http://localhost:9090/getTickets
- POST ticket
http://localhost:9090/bookTickets
request body post request
{
"amount":120,
"category":"test"
}
- DELETE Ticket
http://localhost:9090/remove/{{id}}
- GET Ticket by Category
http://localhost:9090/getTicketByCategory/{{category}}
- Enabled github actions
mvn clean package
mvn checkstyle:checkstyle
docker-compose up --force-recreate
http://localhost:9090/swagger-ui.html
http://localhost:9090/actuator
http://localhost:9090/actuator/health
http://localhost:9090/actuator/prometheus
- Step 1 Pull the images from docker hub
- Step 2 Run the docker image passing the location of prometheus file and image
- Step 3 Open the browser using docker ip address
docker pull prom/prometheus
docker run -p 9090:9090 -v /Users/chetatri/Desktop/spring-mysql/src/main/resources/prometheus.yml prom/prometheus