Simplest GoLang Redis & RabbitMQ IoT project
To run the project you need to:
- Run redis with the following command:
docker run --name redis-test -p 6379:6379 -d redis - Run rabbitmq with the following command:
docker run -d --hostname my-rabbit --name local-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:4-management - Pull the project and run commands in following order:
go mod downloadgo run receiver.gogo run sender.go
- You can see the logs in the receiver terminal and the sender terminal.
Enjoy!