- install python
- install redis
- install docker & docker-compose
- 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
- workmesin1 in
- go to workmesin2
- change the directory into
/home/jovyan/work
cd /home/jovyan/work
- run the server firstly :
python server.py
- 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]
during the server has already on, the communication between alex and bobby as client1 and client2 can send and receive to each other.