Skip to content

sedzd/getFee

Repository files navigation

getFee

up and running

npm i && npm start

test

npm test

sample requeset

curl --location --request POST 'http://localhost:8080/getFee' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{jwtToken}}' \
--header 'User-Agent: {{userAgent}}' \
--header 'X-Currency: SGD' \
--data-raw '{
   "type": "DIRECT_DEBIT_PAYMENT",
   "count": 988,
   "volume": 250000,
   "channel": "BPO",
   "currency": "PHP",
   "country_of_service": "PHILIPPINES",
   "amount": 1200
}'

sample response

{
    "totalFee": "143.55 PHP"
}

dockerization

build

make build

run

make run-dev

destroy

make destroy

Load Test with Apache Benchmark

# default: 10000 request, 100 concurrently
sh ab.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published