git clone https://github.com/poanetwork/blockscout
cd blockscout
export DATABASE_URL=postgresql://user:[email protected]:5432/blockscout
apps/explorer/config/test.exs
for test envmix do deps.get, local.rebar --force, deps.compile
`export SECRET_KEY_BASE=VTIB3uHDNbvrY0+60ZWgUoUBKDn9ppLR8MI4CpRz4/qLyEFs54ktJfaNT6Z221No
secret_key_base
run mix phx.gen.secret
mix phx.digest.clean
.ETHEREUM_JSONRPC_VARIANT
will vary depending on your client (parity, geth etc). More information on client settings.mix compile
pg_ctl -D /usr/local/var/postgres start
mix do ecto.create, ecto.migrate
mix do ecto.drop, ecto.create, ecto.migrate
Be careful since it will delete all data from the DB. Don't execute it on production if you don't want to lose all the data!cd apps/block_scout_web/assets; npm install && node_modules/webpack/bin/webpack.js --mode production; cd -
cd apps/explorer && npm install; cd -
mix phx.digest
cd apps/block_scout_web; mix phx.gen.cert blockscout blockscout.local; cd -
/etc/hosts
chrome://flags/#allow-insecure-localhost
mix phx.server