sthnaqvi / explorer

Ethererum Blockchain Explorer to show the details of the blocks and transactions via web3- Realtime Price Ticker, etc.

Home Page:https://explorer.ethorbit.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For those who want to compile and run it from 2024

wangziyao318 opened this issue · comments

I assume you are using Ubuntu 22.04 LTS.

The repository is quite old (in 2019), and the recommended setting is node v8.0.0 via nvm, python2-minimal from APT, and bower.

First, install nvm and use it to install node v8.0.0

# install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

# install node v8.0.0
nvm install 8.0.0

Then, install python2-minimal from APT package manager, and add soft link to python. You may remove the soft link and uninstall python2 after installation.

sudo apt install python2-minimal
sudo ln -s /usr/bin/python2 /usr/bin/python

After that, git clone this repository and cd in it. Here we begin the installation.

git clone https://github.com/sthnaqvi/explorer
cd explorer

# switch to node v8.0.0 and install bower
nvm use 8.0.0
npm install -g bower

# this will report CERT_HAS_EXPIRED error at the end when calling `bower install`, it's normal
npm install

# manually do `bower install`, ignore ssl check
bower install --config.strict-ssl=false

Finally, we can launch the webui, and now we can safely uninstall python2.

# everytime you open a new terminal in the repository folder
nvm use 8.0.0
npm start

Happy testing!