Throyer / rabbitmq-poc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RabbitMQ + Spring Boot simple example

Tecnologias

How to use

🚨 create environment file and add permission to execute scripts

cp .docker/.env.example .docker/.env && chmod -R +x .docker/scripts
  • start containers

    .docker/scripts/develop-compose up -d --build
    
  • show logs

    .docker/scripts/develop-compose logs -f service-a service-b
    
  • send user to Service A

    POST http://localhost:8081/api/v1/users
    {
      "name": "Jubileu da silva"
    }
    curl --location --request POST 'http://localhost:8081/api/v1/users' \
    --header 'Content-Type: application/json' \
    --data-raw '{
      "name": "Wade Schneider"
    }'
    
  • get users on Service B

    GET http://localhost:8082/api/v1/users
    curl --location --request GET 'http://localhost:8082/api/v1/users'
    

About


Languages

Language:Java 96.9%Language:Shell 3.1%