이 프로젝트는 insight, insight-previous 동작에 필요한 bitcore-node 를 Python으로 포팅했습니다.
비동기 라이브러리 asyncio
, starlette
를 기반으로 작성되어 있습니다.
서버 실행시 자동으로 블록체인 데이터가 데이터베이스에 동기화됩니다.
- Python 3.7 (+ pipenv)
- MongoDB 4.0
- NodeJS v10
- Redis
Ubuntu 18.04 LTS 기준으로 작성되어 있습니다.
- python3.7
- python3.7-dev
- build-essential
- libgmp3-dev
- libssl-dev
poetry install
blockexp.toml
파일 편집poetry run python -m blockexp
insight-previous
기준으로 작성되어 있습니다.
bitcore
폴더에서npm install
bitcore/packages/insight-previous
폴더에서npm install
bitcore/packages/insight-previous
폴더에서ENV=prod CHAIN=BTC NETWORK=mainnet API_PREFIX=http://localhost:8000/api npm run ionic:build --prod
(필요시 적절하게CHAIN
,NETWORK
,API_PREFIX
를 변경하시면 됩니다.)