CKB Explorer is a Nervos CKB blockchain explorer built with React and Ruby on Rails.
It supports searching block, transaction, address and includes two parts: frontend and backend server.
- Node: install version 11.10 or greater.
- Yarn: See Yarn website for installation instructions. (needs 1.13.0 or greater).
- A fork of the repo (for any contributions).
- A clone of the
ckb-explorer-frontend
repo.
You need to edit .env.develop and .env.production to set your own api url as ckb explorer server.
REACT_APP_API_URL = 'http://your-api-url' # Set your own api url
git clone https://github.com/nervosnetwork/ckb-explorer-frontend.git
cd ckb-explorer-frontend
yarn install # install dependency libraries
yarn start
to start the development server (ornpm start
, if not using Yarn).- open
http://localhost:3000/
to open the site in your favorite browser.
yarn build # build ckb explorer frontend project
yarn test # run project test cases
CKB Explorer Frontend is released under the terms of the MIT license. See COPYING for more information or see https://opensource.org/licenses/MIT.