The post 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:4000/posts
{
"id": "3333af60",
"title": "Dragons vs Magicians"
}
localhost:4000/posts
{
"title": "Dragons vs Magicians"
}
{
"3333af60": {
"id": "3333af60",
"title": "Dragons vs Magicians"
}
}