Very simple gift code management system just for presenting
docker --version
sudo systemctl start docker.service
sudo docker-compose build --no-cache
sudo docker-compose up --force-recreate
#1 Discount Service 'http://localhost:7000/api/ping':
curl -X GET "http://localhost:7000/api/ping" -H "Accept: application/json"
{
"status": true,
"message": "ok",
"errors": null,
"data": "pong"
}
#2 Report Service 'http://localhost:8000/api/ping':
curl -X GET "http://localhost:8000/api/ping" -H "Accept: application/json"
{
"status": true,
"message": "ok",
"errors": null,
"data": "pong"
}
#3 Wallet Service 'http://localhost:9000/api/ping':
curl -X GET "http://localhost:9000/api/ping" -H "Accept: application/json"
{
"status": true,
"message": "ok",
"errors": null,
"data": "pong"
}
Just import thunder-collection_Gift_Code_Management.json
to VSCode Thunder Client
extension and enjoy it! 😄
sudo docker exec -it discount_service_app bash
go clean -testcache
go test ./...