The purpose is show an example of microservice architecture in Node.js and Nats (message queue)
$ docker-compose up --build # It will run "nats" and 3 node apps (main, social and notification)
$ node call.js # Start the process and check logs from docker-compose of all node apps
# You can go to localhost:3000 (api enabled for main app)
- [MAIN] User login --> [NOTIFICATION] Write in DB
- [MAIN] User publish a post --> [SOCIAL] A post is published to FB and Twitter
- [MAIN] A post is published --> [NOTIFICATION] Notify all users