RabbitMQ + Spring Boot simple example
How to use
🚨 createenvironment
file and add permission to execute scriptscp .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'