Skip to content

microservices: docker, docker compose, node.js, mongo, rabbitmq

Notifications You must be signed in to change notification settings

Mikkou/microservices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

  • 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
  1. docker compose up -d
  2. open logs of user and notification services
  3. make request on POST and DELETE api

API:

  1. create user, POST http://localhost:3000/users
{
    "name": "apple223",
    "email": "[email protected]"
}
  1. get users, GET http://localhost:3000/users?limit=2&offset=0
  2. update user, PUT http://localhost:3000/users
{
    "id": "6740d9ee7a7bb4bf3232027b", // this userId you can take from mongo service
    "name": "art",
    "email": "[email protected]"
}
  1. delete user, DELETE http://localhost:3000/users?id=6740d9ee7a7bb4bf3232027b

About

microservices: docker, docker compose, node.js, mongo, rabbitmq

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published