/eazyhack_pub

Primary LanguageJavaScript

What this basic app does right?

In Single Sentence it publishes all incoming request body

It is a basic node app which runs on port 4000 and publishes all incoming data on the endpoint /user [POST].

For more watch this short GIF or clone and run this by yourself cause i suck at writing :)

Steps to Run :-

  • Make sure your redis is running on same port as your subscriber's redis is running on.
  • Run npm i and then node index
  • Make sure your subscriber is running.
  • Hit a POST request on http://localhost:4000/user
  • Now you will see a database with name Logger in your MongoDB Compass and it will have the collection of your request body.

Tech stack:-

  • Node
  • Redis

P.S.- It has only bare minima functionality which only includes publishing message so that it could act as a logging System

Refer to it's subscriber:- subscriber

Final.mov