This project was designed to learn Redis and RabbitMQ with Java using Docker compose.
Install dependencies
In this repo you can see 3 main folders.
- Controllers
- TestController
- Domain
- Test class
- Services
- RedisService
make build
At root of this project run this command to start Redis and RabbitMQ
make up
- Build and start this project
- Run the next line to set value on Redis
curl -X POST -H "Content-Type: application/json" -d '{"id": 1, "value": "Hello redis!"}' http://localhost:8080/api/test
- Run the next line to get the value sent before on redis
curl -X GET http://localhost:8080/api/test/1
make down