Very simple gift code management system just for presenting
docker --versionsudo systemctl start docker.servicesudo docker-compose build --no-cachesudo 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 bashgo clean -testcache
go test ./...