This is a POS integrated e-commerce platform which offers a point system and has a vast collection of payment methods integrated.
Which offers:
- Calculate the final price and points of the order according to the price, price modifier, and payment method
- Get how much sales were made within a date range broken down into hours
- Clone the repository
- Run the
docker-compose up -dcommand under the "resources" folder to start the database
(If you don't have docker, please install it first https://docs.docker.com/get-docker/) ./gradlew bootRunto start the application
You can use the following curl commands to test the application of making a payment.
curl --location 'localhost:8080/api/transaction' \
--header 'Content-Type: application/json' \
--data '{
"price":"100.00",
"priceModifier": 0.95,
"paymentMethod": "MASTERCARD",
"dateTime": "2022-09-01T00:19:00Z"
}'
Test the application of getting total price and points.
curl --location --request GET 'localhost:8080/api/sales' \
--header 'Content-Type: application/json' \
--data '{
"startDateTime":
"2022-09-01T00:19:00Z",
"endDateTime":
"2022-09-02T23:59:59Z"
}'

