Elixir + Phoenix Blockchain explorer for NEO
To run, first install Elixir and Phoenix at:
mix format
(you can use precommit hook: https://github.com/jasongoodwin/elixir-mix-format-pre-commit-hook)You can skip this section if you do not wish to run docker.
Using docker you can start the project with:
docker-compose up -d
docker exec -it phoenixdev sh
cd /data
To run the tests:
mix deps.get --only test
MIX_ENV=test mix ecto.create && mix ecto.migrate
mix test
To start the Application/Phoenix server:
mix deps.get
mix ecto.create && mix ecto.migrate
cd apps
, cd neoscan_web
, then cd assets && npm install
mix phx.server
To start the Application/Phoenix server:
mix deps.get
mix ecto.create && mix ecto.migrate
cd apps
, cd neoscan_web
, then cd assets && npm install
NEO_SEEDS="https://seed1.neo.org:20331;http://seed2.neo.org:20332" mix phx.server
Now you can visit localhost:4000
from your browser.
Make sure the username and password for your PostgreSQL match the contents of "apps/neoscan/config/dev.exs"
Dump your database with pg_dump, i.e.,
To tarball:
pg_dump -U postgres -h localhost -W -F t neoscan_dev > neoscan_dev_testnet.tar
To file:
pg_dump -U postgres -h localhost -W neoscan_dev > neoscan_dev_testnet
Restore:
pg_restore --dbname=neoscan_dev --verbose neoscan_dev_testnet.tar