Installation
Prerequisites
Install Node and Yarn
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash
nvm install node
nvm install-latest-npm
npm install --global yarn
Install
Clone from our repo
git clone https://github.com/CryptoNodeID/explorer.git
Would be better if you fork from our repo and clone it from yours so you can modify it freely
Build
cd explorer
yarn --ignore-engines && yarn build
the build result will be under dist
folder in the current working directory
Setup nginx
Just like in Basicssegment ( Routing using NGINX ), we're going to create config for explorer. In assumption you've know how to and done Setting up SSL, here's the commands and config example:
sudo nano /etc/nginx/sites-available/explorer
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name explorer.cryptonode.id;
ssl_certificate /etc/letsencrypt/live/explorer.cryptonode.id/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/explorer.cryptonode.id/privkey.pem;
root ~/explorer/dist;
index index.html index.htm;
location / {
try_files $uri $uri/ /index.html =404;
}
}
ln -s /etc/nginx/sites-available/explorer /etc/nginx/sites-enabled/explorer
Last updated
Was this helpful?