Magickbase / blockscan

GNU General Public License v3.0
5 stars 11 forks source link

BlockScan

this project fork from Blockscout v4.1.5.

About

BlockScan is a explorer for ETH compatible chain like Axon Side Chain which is a layer2 network build on Nervos Network CKB

Getting Started

  1. install latest docker and docker compose
  2. run pg database on the host machine
  3. edit xxx.env file
  4. build command docker-compose --env-file ./dev.env -f ./docker-compose.yml build blockscan
  5. run database docker-compose --env-file ./dev.env -f ./docker-compose.yml up --force-recreate db
  6. run command docker-compose --env-file ./dev.env -f ./docker-compose.yml up --force-recreate blockscan
  7. use your env file instead of dev.env

    Github Action

  8. setting your forked project environment: "axon_staging" (you can change it in your github workflow file)
  9. setting secret environment ENV_FILE_PATH which directing real path of your .env file on the deployment server
  10. pushing to main or develop branch (you can change it in your github workflow file)
  11. .env fields meaning
  12. primary enviroment setting:
    • ETHEREUM_JSONRPC_HTTP_URL (setting your chain node rpc endpoint)
    • ETHEREUM_JSONRPC_TRACE_URL (setting your chain node rpc endpoint)
    • DATABASE_URL (setting explorer access database url)

Acknowledgements

Contributing

just fork and pull request

License

License: GPL v3.0

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.