Stock Service is a microservice designed to facilitate the retrieval of stock prices using stock codes. It integrates with RabbitMQ to receive messages containing stock codes and makes HTTP requests to stooq.com to fetch real-time stock price data.
- Golang
- RabbitMQ
- testify
- Docker
- Golang
>=
1.20 - golangci-lint
You need to clone the repository to run images of RabbitMQ and PostgreSQL
Repo : https://github.com/brcodingdev/chat-service.git
Update .env file, env vars:
#RabbitMQ
RABBIT_USERNAME=guest
RABBIT_PASSWORD=guest
RABBIT_HOST=localhost
# builds an image
$ make build-docker
# run the service
$ make run
# run inside container
$ make run-docker
# run tests
$ make test
- More Unit Tests
- Improve the code with the best practices in Golang