지난 포스팅에서는 Websocket 통신을 위해 기본적은 서버 세팅을 마쳤다. 다음으로는 간단한 테스트를 위해 클라이언트를 간단하게 구성해보자 라이브러리 설치 npm install socket.io-client Websocket 서버와의 통신을 위해 socket.io-client 라이브러리를 프로젝트에 추가한다 컴포넌트 구성 import React, { useState, useEffect } from 'react'; import io from 'socket.io-client'; const SERVER_URL = 'http://localhost:8080'; // NestJS 서버의 URL과 포트 function ChatClient() { const [socket, setSocket] = useState(n..
2차 프로젝트를 마치고 새로운 프로젝트를 시작하고 있다.이번 프로젝트에서는 java, springboot 등 지금 교육 중인 스택들을 활용해서 할 예정인데CI/CD에서도 다른 스택을 사용해보고 싶었다.그래서 gitaction과 docker를 활용해서 CI/CD를 구축하고자 했다. EC2 Docker 설치먼저 EC2에 docker를 설치해줘야한다.sudo apt-get update -y# HTTP 패키지 설치sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common -y# gpg 키 및 저장소 추가curl -fsSL https://downlo..