The comment service is responsible for creating and retrieving posts. Anytime a post is created the post service emits an event to the Event Bus.
To run this service, execute npm start
within the root directory of the service.
localhost:4001/posts/123/comments
[
{
"id": "1725f7be",
"content": "Awesome Build!"
}
]
localhost:4001/posts/123/comments
{
"content": "Sweet build!"
}
[
{
"id": "1725f7be",
"content": "Sweet Build!"
}
]