A Sock Shop service that provides news/update information.
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 news
The result is a binary named news
, in the current directory.
docker-compose build
If you followed to Go build instructions, you should have a "news" binary in $GOPATH/src/github.com/kcz17/news/cmd/newssvc/. To run it use:
./news
docker-compose up
curl http://localhost:8080/health
curl http://localhost:8080/news
docker build -t kcz17/news:[VERSION] -f docker/news/Dockerfile .
docker build -t kcz17/news-db:[VERSION] docker/news-db