- Java 17
- Maven
- Docker
- Docker Compose
- Clone the repository.
- Navigate to the project directory.
-
Start the Docker containers:
docker-compose up -d
-
Navigate to the respective project directory:
-
For Coupon Optimization Project:
cd coupon
-
For Top 5 Favorite Items:
cd bookmark
-
-
Build and run the application:
mvn clean install mvn spring-boot:run
curl --location --request GET 'http://localhost:8080/coupon/stats'
curl --location --request GET 'MercadoLibreBookmarkLB-341430534.us-east-1.elb.amazonaws.com/coupon/stats'
curl --location --request POST 'http://localhost:8081/coupon' \
--header 'Content-Type: application/json' \
--data '{
"itemIds": [
"MLA811601010",
"MLA878620076",
"MLA1416208901",
"MLA905560536"
],
"amount": 1000
}'
curl --location --request POST 'MercadoLibreCouponLB-158385986.us-east-1.elb.amazonaws.com/coupon' \
--header 'Content-Type: application/json' \
--data '{
"itemIds": [
"MLA811601010",
"MLA878620076",
"MLA1416208901",
"MLA905560536"
],
"amount": 1000
}'
You can find deployment instructions here: Deploy