https://github.com/fajrulaulia/nodejs-pusub
simple publisher suscriber using nodejs and redis server
https://github.com/fajrulaulia/nodejs-pusub
nodejs publisher redis subscriber
Last synced: about 1 month ago
JSON representation
simple publisher suscriber using nodejs and redis server
- Host: GitHub
- URL: https://github.com/fajrulaulia/nodejs-pusub
- Owner: fajrulaulia
- Created: 2020-10-31T14:03:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-31T14:06:17.000Z (over 5 years ago)
- Last Synced: 2025-01-19T08:42:43.635Z (over 1 year ago)
- Topics: nodejs, publisher, redis, subscriber
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Node JS PubSub
## Instalation
clone this repository and change directory to repository
``` bash
# Install depdencies
$ npm i
# Pull, build and up redis as redis server for serv nodejs
$ docker-compose up -d redis
```
## Usage
use two terminal, this is how to communicate pub sub using redis
terminal A
``` bash
$ node suscriber.js
```
terminal B
``` bash
$ node publisher.js
```
## Author
Fajrul Aulia