chano21 / PythonWebsocketSample

Assignment for TravlePlane

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PythonWebsocketSample

install and excute guide 실행초기순서 :

  1. pythonInstall 폴도의 exe를 설치

  2. pip install --upgrade pip pip install gevent pip install gevent-websocket pip install gunicorn pip install redis

  3. vscode extention 에서 python 검색후 위에서 3개 설치하기

핵심 작업 :

  1. Redis Queue에 연결하기위한 파이썬 테스트코드 구현

  2. Redis Queue pubsub 테스트코드 및 기능 구현

  3. localhost:8000/chat 에 메세지 보내는 테스트코드구현, 즉 websocket client

  4. websocket client는 3초마다 메시지를 보내는 for 반복문 클라이언트를 구현하는것임.

  5. gunicorn 이 window에선 안되는것 같으므로 docker 로 python코드를 빌드해서 서버를 실행한다.

About

Assignment for TravlePlane


Languages

Language:Python 73.3%Language:HTML 23.4%Language:Dockerfile 3.4%