ckb-explorer-frontend
所属分类:区块链开发
开发工具:TypeScript
文件大小:794KB
下载次数:0
上传日期:2023-04-28 11:15:46
上 传 者:
sh-1993
说明: ckb浏览器前端,Nervos ckb浏览器前端
(ckb-explorer-frontend,Nervos CKB Explorer Frontend)
文件列表:
ckb-explorer-frontend-develop (0, 2023-05-28)
ckb-explorer-frontend-develop\.buildpacks (100, 2023-05-28)
ckb-explorer-frontend-develop\.dockerignore (39, 2023-05-28)
ckb-explorer-frontend-develop\.env.development.example (146, 2023-05-28)
ckb-explorer-frontend-develop\.env.production.example (186, 2023-05-28)
ckb-explorer-frontend-develop\.eslintrc.js (2674, 2023-05-28)
ckb-explorer-frontend-develop\.husky (0, 2023-05-28)
ckb-explorer-frontend-develop\.husky\pre-commit (35, 2023-05-28)
ckb-explorer-frontend-develop\.node-version (9, 2023-05-28)
ckb-explorer-frontend-develop\.prettierrc (116, 2023-05-28)
ckb-explorer-frontend-develop\.secrets.example (88, 2023-05-28)
ckb-explorer-frontend-develop\.stylelintrc.json (222, 2023-05-28)
ckb-explorer-frontend-develop\COPYING (1074, 2023-05-28)
ckb-explorer-frontend-develop\Dockerfile (845, 2023-05-28)
ckb-explorer-frontend-develop\app.json (99, 2023-05-28)
ckb-explorer-frontend-develop\config-overrides.js (1225, 2023-05-28)
ckb-explorer-frontend-develop\front.conf (391, 2023-05-28)
ckb-explorer-frontend-develop\package.json (2951, 2023-05-28)
ckb-explorer-frontend-develop\public (0, 2023-05-28)
ckb-explorer-frontend-develop\public\favicon.ico (912, 2023-05-28)
ckb-explorer-frontend-develop\public\images (0, 2023-05-28)
ckb-explorer-frontend-develop\public\images\nft_placeholder.png (2195, 2023-05-28)
ckb-explorer-frontend-develop\public\index.html (2042, 2023-05-28)
ckb-explorer-frontend-develop\public\manifest.json (298, 2023-05-28)
ckb-explorer-frontend-develop\src (0, 2023-05-28)
ckb-explorer-frontend-develop\src\App.tsx (1222, 2023-05-28)
ckb-explorer-frontend-develop\src\__mocks__ (0, 2023-05-28)
ckb-explorer-frontend-develop\src\__mocks__\block.ts (5158, 2023-05-28)
ckb-explorer-frontend-develop\src\__mocks__\charts.ts (7596, 2023-05-28)
ckb-explorer-frontend-develop\src\__mocks__\home.ts (2363, 2023-05-28)
... ...
CKB Explorer
[![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/nervosnetwork/ckb-explorer-frontend/blob/develop/COPYING)
[![Github Actions CI](https://github.com/nervosnetwork/ckb-explorer-frontend/workflows/CI/badge.svg?branch=develop)](https://github.com/nervosnetwork/ckb-explorer-frontend/actions)
[![Discord](https://img.shields.io/discord/956765352514183188?label=Discord&logo=discord&style=default&color=grey&labelColor=5865F2&logoColor=white)](https://discord.gg/RsyKyejxAW)
CKB Explorer is a [Nervos CKB](https://github.com/nervosnetwork/ckb) blockchain explorer built with [React](https://reactjs.org/) and [Ruby on Rails](https://rubyonrails.org/) and includes two parts: [CKB Explorer Frontend](https://github.com/nervosnetwork/ckb-explorer-frontend) and [CKB Explorer Server](https://github.com/nervosnetwork/ckb-explorer).
See live at [CKB Explorer](https://explorer.nervos.org).
API documentation is [available here](https://nervosnetwork.github.io/ckb-explorer/public/api_doc.html).
# CKB Explorer Frontend
## Features
- Explore blocks, transactions, addresses and lock hashes
- Shows previous output and spending transaction details
- Quick-search for tx hash, address, lock hash, block hash or height
- Mobile-ready responsive design
- Translated to two languages (English and Chinese)
- Mainnet and Testnet with different theme colors
## Getting Started
### Prerequisite
- Node: install version 12.0.0 or greater.
- Yarn: See [Yarn website for installation instructions](https://yarnpkg.com/lang/en/docs/install/). (needs 1.13.0 or greater).
- A fork of the repo (for any contributions).
- A clone of the `ckb-explorer-frontend` repo.
### Edit .env file
You need to edit .env.development for development and .env.production for production to set your own api url as ckb explorer server.
```shell
REACT_APP_API_URL = 'http://your-api-url' # Set your own server api url
REACT_APP_CHAIN_TYPE = 'testnet' # Set chain type (mainnet or testnet)
REACT_APP_MAINNET_URL = 'http://localhost:3000' # MAINNET_URL is for deploying testnet, please ignore for development
REACT_APP_TESTNET_NAME = 'testnet' # TESTNET_NAME will be displayed on explorer header and it also determines the subpath of the testnet
```
### Installation
```shell
git clone https://github.com/nervosnetwork/ckb-explorer-frontend.git
cd ckb-explorer-frontend
yarn install # install dependency libraries
```
### Running locally
- `yarn start` to start the development server (or `npm start`, if not using Yarn).
- open `http://localhost:3000/` to open the site in your favorite browser.
### Building production
```shell
yarn build # build ckb explorer frontend project
yarn test # run project test cases
```
## License
CKB Explorer Frontend is released under the terms of the MIT license. See [COPYING](COPYING) for more information or see [https://opensource.org/licenses/MIT](https://opensource.org/licenses/MIT).
近期下载者:
相关文件:
收藏者: