Skip to content

gopalsasmal100xdev/Messaging-Queue-Using-Redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Start Docker server

  docker run --name my-redis -d -p 6379:6379 redis

Check if Docker is Running or not

  docker ps

Connect to your docker container

  docker exec -it container_id /bin/bash

Connect to your Redis CLI

  redis-cli

Open two terminals

  • Compile both backend and workers by using
  tsc -b
  • Go to backend folder and start backend by
  node dist/index.js
  • Go to workers folder and start workers by
  node dist/index.js