Skip to content

if1007-pqn/creditService

Repository files navigation

credit service

a credit microservice over spring boot and mongo

running only local application (dev)

  • requires storeservice running in same local
 ./gradlew run 

running container local (prod)

  • used to test communication with logservice local, firstly run the run.sh of logservice, then do it:
 ./run.sh 

running tests (test)

 ENV=test ./run.sh 

build and push to AWS EKS

  • 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.

docs/api

run the project and access the swagger page:

 GET /swagger-ui.html 

or here (may be outdated)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published