Skip to content
SushiChain Blockchain Explorer
Crystal JavaScript HTML
Branch: master
Clone or download
Latest commit da0005f Aug 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec Init Jul 23, 2019
src Update transaction view Aug 19, 2019
.editorconfig Init Jul 23, 2019
.gitignore Init Jul 23, 2019
.travis.yml Init Jul 23, 2019
LICENSE Init Jul 23, 2019
README.md Remove "Connect the docker instance to an application" which is ambig… Aug 16, 2019
shard.lock Migrate to crystal 0.30.1. Aug 14, 2019
shard.yml Remove commented postinstall section Aug 15, 2019

README.md

SushiChain Blockchain Explorer

SushiChain Explorer is an open source utility to browse activity on the Blockchain.

Development

Build the mint webapp

cd src/explorer/web/static
mint build --skip-service-worker
cd ./../../../..

Run the explorer

DEBUG=1 crystal run src/explorer.cr -- -n http://testnet.sushichain.io:3000

Compile the binary

shards build --production

Start the compiled web application (static files are in binary)

./bin/explorer -n http://testnet.sushichain.io:3000 

RethinkDB docker doc

Link to RethinkDB docker documentation

docker run --name rethinkdb -v "$PWD:/data" -d rethinkdb

# Connecting to the web admin interface on the same host

xdg-open "http://$(docker inspect --format \
  '{{ .NetworkSettings.IPAddress }}' rethinkdb):8080"

# Connecting to the web admin interface on a remote / virtual host via SSH
# Where remote is an alias for the remote user@hostname:

# start port forwarding
ssh -fNTL 8080:$(docker inspect --format \
  '{{ .NetworkSettings.IPAddress }}' rethinkdb):8080 localhost

ssh -fNTL 28015:$(docker inspect --format \
  '{{ .NetworkSettings.IPAddress }}' rethinkdb):28015 localhost

# open interface in browser
xdg-open http://localhost:8080

# stop port forwarding
kill $(lsof -t -i @localhost:8080 -sTCP:listen)
kill $(lsof -t -i @localhost:28015 -sTCP:listen)

Create RethinkDB database and user

r.db('rethinkdb').table('users').insert({id: 'sushixplorer', password: 'sushixplorer'});
r.dbCreate('sushixplorer_test');
r.db('sushixplorer_test').grant('sushixplorer', {read: true, write: true, config: true});

Contributing

  1. Fork it (https://github.com/your-github-user/explorer/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

You can’t perform that action at this time.