Obyte explorer backend
Backend for https://github.com/byteball/obyte-explorer-frontend
Installation
Install node.js 10+, clone the repository, then
yarn
node migration.js
- set pathToDist in .env or
ln -s path/to/byte-explorer-frontend/dist/ .
Run
node explorer.js
Nginx config
server {
listen 80;
server_name localhost;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:4000;
}
location ~ \.(js|ico|css|png) {
root /path/to/dist;
}
}
By default, the explorer will be available at http://localhost:4000