a credit microservice over spring boot and mongo
- requires storeservice running in same local
./gradlew run
- used to test communication with logservice local, firstly run the run.sh of logservice, then do it:
./run.sh
ENV=test ./run.sh
- this script requires account in docker hub:
bash eks/push-eks.sh $STORESERVICE_ADDR $LOGSERVICE_ADDR
STORESERVICE_ADDR is the storeservice address (with port), used to get levels of store for calculate credit received by purchase. LOGSERVICE_ADDR is the logservice address (with port), used to logstash and packetbeat in creditservice container, send the logs and metrics respectively.
run the project and access the swagger page:
GET /swagger-ui.html
or here (may be outdated)