Skip to content

codescouts-academy/codescouts-spring-redis-rabbitmq-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting started 🎉

This project was designed to learn Redis and RabbitMQ with Java using Docker compose.

Requirements 🎲

Install dependencies

Folder structure 📁

In this repo you can see 3 main folders.

  • Controllers
    • TestController
  • Domain
    • Test class
  • Services
    • RedisService

Build 🛠

make build

Run 🏃

At root of this project run this command to start Redis and RabbitMQ

make up

Start 🧩

Redis 🚀

  • 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

Stop ✋

make down

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published