A Sock Shop service that provides a recommendation by connecting to the catalogue service.
In order to build the project locally you need to make sure that dependencies are installed. Once that is in place you can build by running:
go mod download
go build -o recommender
The result is a binary named recommender, in the current directory.
docker-compose build
If you followed to Go build instructions, you should have a "recommender" binary in $GOPATH/src/github.com/kcz17/recommender/cmd/recommendersvc/. To run it use:
./recommender --port 8080
docker-compose up
curl http://localhost:8080/health
curl http://localhost:8080/recommender
docker build -t kcz17/recommender:[VERSION] -f docker/recommender/Dockerfile .docker build -t kcz17/recommender-db:[VERSION] docker/recommender-db