

멘토님께서 프론트엔드 기여자들도 yorkie를 같이 설치해보면 좋겠다고 해서 멘토님 설명, 컨트리뷰션 가이드를 참고해서 yorkie 먼저 설치해보았다.
brew install golang
brew install protobuf
❌ Protobuf Compiler를 설치할 때 다음과 같은 에러가 발생했다
Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins
✅ 구글링 해본 결과 Docker를 삭제했다면 수동으로 다시 Docker파일을 만들어줘야 된다고 해서 다음의 명령어들을 실행했다
mkdir -p /Applications/Docker.app/Contents/Resources/cli-plugins
brew cleanup
brew install --cask docker //gui로 docker 설치
❌ 위에서 수동으로 만든 Docker 폴더때문에 이미 설치되어 있다는 문구가 떴다
✅ Docker 삭제 스크립트를 다운받아 실행 후 재설치하니 성공적으로 설치되었다.
curl -O https://raw.githubusercontent.com/docker/toolbox/master/osx/uninstall.sh
chmod +x uninstall.sh
sudo ./uninstall.sh
rm uninstall.sh
brew install --cask docker
원래 Yorkie 프로젝트에서 내 레포지토리로 fork한 후 로컬에 클론했다.
fork하는 과정은 생략한다
git clone https://github.com/DongjaJ/yorkie.git
cd yorkie
make tools
make build # executable: ./bin/yorkie
docker-compose -f build/docker/docker-compose.yml up --build -d
make test
❌ 다음과 같은 오류가 발생했다
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
✅ 바보같이 Docker를 실행 안 해서였다...
Docker 프로그램을 실행하고 명령어를 다시 입력하니 정상적으로 동작했다.
git clone https://github.com/DongjaJ/yorkie-js-sdk.git
cd yorkie-js-sdk
npm install
npm run build
Yorkie와 마찬가지로 도커를 켜놔야 한다.
docker-compose -f docker/docker-compose.yml up --build -d
$ npm run test
위의 도커가 실행되고 있다면 다음의 명령어를 통해 webpack의 개발서버를 실행시켜 예제를 볼 수 있다.
$ npm run dev
서버를 실행시켰다면 http://localhost:9000/로 접근해서 예제들을 볼 수 있다.
public/dist 내의 html에 접근하면 예제들을 실행시킬 수 있다
code mirror http://localhost:9000/

drawing http://localhost:9000/drawing.html

http://localhost:9000/quill.html