bTaskee---Test-Assignment
- docker
- golang
- make command
- copy the following *.sample files to corresponding .env files within the same directory
cp ./config/.mongo.sample ./config/.mongo
cp ./config/.env.sample ./config/.env
cp ./service/booking/config/.env.sample ./service/booking/config/.env
cp ./service/pricing/config/.env.sample ./service/pricing/config/.env
cp ./service/send/config/.env.sample ./service/send/config/.env
How to run integration tests
- wait until the following line is pop up in the terminal
Server is open to allow connections from anyone (0.0.0.0)
- get price of April 7th 2024
curl --location 'http://localhost:8001/pricing/api/get-price' \
--header 'Content-Type: application/json' \
--data '{
"date": "2024-04-07"
}'
- get price of April 6th 2024
curl --location 'http://localhost:8001/pricing/api/get-price' \
--header 'Content-Type: application/json' \
--data '{
"date": "2024-04-06"
}'
curl --location 'http://localhost:8000/booking/api/create-job' \
--header 'Content-Type: application/json' \
--data-raw '{
"address": "123, foobar Street, foo City",
"description": "lorem ipsum som",
"email":"foobar@bar.com",
"name": "foobar",
"phone_number":"+8787878787"
}'