- to start project:
docker compose up -d
- to get logs from user and notification services
docker logs -f user-service
docker logs -f notification-service
- to rebuild all containers
docker compose up -d --no-deps --build
- quick start to check communication between microservices using rabbit
- docker compose up -d
- open logs of user and notification services
- make request on POST and DELETE api
API:
- create user, POST http://localhost:3000/users
{
"name": "apple223",
"email": "[email protected]"
}
- get users, GET http://localhost:3000/users?limit=2&offset=0
- update user, PUT http://localhost:3000/users
{
"id": "6740d9ee7a7bb4bf3232027b", // this userId you can take from mongo service
"name": "art",
"email": "[email protected]"
}
- delete user, DELETE http://localhost:3000/users?id=6740d9ee7a7bb4bf3232027b