How codescouts-academy/codescouts-spring-redis-rabbitmq-starter works
Project type and purpose
• This is a Java Spring Boot microservice whose primary goal is to teach Redis (and RabbitMQ) integration.
• It exposes a simple REST API for storing and retrieving “Test” objects in Redis. Docker and Docker Compose orchestrate the service, Redis, and RabbitMQ.
File structure
• Top level:
• Dockerfile – builds the Spring Boot jar image
• docker-compose.yml – brings up Redis and RabbitMQ alongside the app
• Makefile – shortcuts for build, up, down
• pom.xml / .mvn / mvnw – Maven build
• src/main/java/com/codescouts/starter:
• RedisConfig.java – configures the Redis connection
• StarterApplication.java – Spring Boot entry point
• controllers/TestController.java – REST endpoints (/api/test)
• domain/Test.java – data model (id, value)
• services/RedisService.java – business logic for read/write to Redis
• src/main/resources/application.properties – host/port etc.
• src/test/java/... – unit tests for the application
Extract key insights from README
• Uses Docker Compose to launch Redis and RabbitMQ.
• Provides POST and GET endpoints to store and fetch Test objects in Redis.
• RabbitMQ is mentioned as a learning target (you may extend the service with message-based flows).