Setting Up Your Dev Environment

Bitclout 코드를 실행하고 개발해보자.

Setup

cd $WORKING_DIRECTORY
git clone https://github.com/deso-protocol/core.git
git clone https://github.com/deso-protocol/backend.git
git clone https://github.com/deso-protocol/frontend.git
git clone https://github.com/deso-protocol/identity.git

Running the frontend in development mode

# Assume we're starting in $WORKING_DIRECTORY, which contains all the repos
cd frontend
npm install

# The following command will serve the frontend on localhost:4200 with
# auto-reloading on changes. You must run a node before the site will
# actually work however (see next section).
ng serve

npm install 시 발생하는 에러

git@github.com Permission denied (public key) error 가 발생했다.

등록되지 않은 기기에서 유저의 ssh가 등록되지 않아 접근권한이 없어서 나오는 문제이다.

MAC ) git 문제 Permission denied (publickey).

해당 블로그를 참고하여 해결했다.

ng serve 전에는 angular를 설치해주어야 한다.

Install angular

Running the node in testnet mode

script 실행 시 발생하는 에러

script 실행 후 보안상의 이유 때문에 flag를 다시 원래 설정으로 돌려주어야 한다.

Port 번호 변경

bitclout frontend는 17001번 포트에 backend API 요청을 한다. 17001은 메인넷 포트이고 18001이 테스트 포트이다. 따라서 test 노드를 돌렸으면 frontend와 연결이 되어 있지 않다. 테스트넷과 연결하기 위해서는 frontend에서 포트 번호를 변경해야 한다.

위 사진처럼 lastLocalNodeV2 를 17001에서 18001로 바꾼 후 다시 실행하자.

Running the node in mainnet mode

mainnet은 17001번 포트에서 실행되므로 testnet과 반대로 frontend lastLocalNodeV2를 다시 17001로 돌려주어야 한다.

Reference

Setting Up Your Dev Environment

Last updated

Was this helpful?