This is a Web application built with spring boot and thymeleaf and containerized with docker and yes.
- Traverse to the cloned directory
- mvn clean
- mvn package verify
- java -jar target/*.jar
- docker pull amitkiit1994/learning
- docker run -d -t -p 8080:8080 --name product amitkiit1994/learning:latest
Hit localhost:8080/products
API Information: GET: localhost:8080/products/api/products/ POST: localhost:8080/products/api/products/ Request payload:
{
"prodName": "Poco F2",
"prodDesc": "Poco from Xiaomi",
"categoryItem": 2
}
DELETE: localhost:8080/products/api/products/{prodid} PUT: localhost:8080/products/api/products/{prodid}