Skip to content

storyofhis/redis-chat-distributed_system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Application

presequite

  • install python
  • install redis
  • install docker & docker-compose

run the apps

  • clone this repo
  • first running the container
    docker-compose up -d
    
  • check the container already run or not ??
    docker ps
    
  • there's 2 containers :
    • workmesin1 in http://0.0.0.0:60001/lab password : mesin1
    • workmesin2 in http://0.0.0.0:60002/lab password : mesin2

server :

  • go to workmesin2
  • change the directory into /home/jovyan/work
cd /home/jovyan/work
  • run the server firstly :
python server.py

client :

  • go to workmesin1
  • change the directory into /home/jovyan/work
cd /home/jovyan/work
  • make it 2 clients, in orther to communicate one client to each other
python client.py [someone_1]
python client.py [someone_2]

chat apps display :

during the server has already on, the communication between alex and bobby as client1 and client2 can send and receive to each other. Screenshot 2023-12-28 at 16 11 13

About

communication between two or more clients

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published