This is a tool for inspecting and analyzing the POA Network blockchain.
- Erlang/OTP 20.2+
- Elixir 1.5+
- Postgres 10.0
- Heroku for deployment
- Github for code storage
To get POA Explorer up and running locally:
- Set up some default configuration with:
$ cp config/dev.secret.esx.example config/dev.secret.esx - Install dependencies with
$ mix do deps.get, local.rebar, deps.compile, compile - Create and migrate your database with
$ mix ecto.create && mix ecto.migrate - Install Node.js dependencies with
$ cd assets && npm install && cd .. - Start Phoenix with
$ mix phx.server
Now you can visit localhost:4000 from your browser.
You can also run IEx (Interactive Elixir): $ iex -S mix phx.server
Configure your local CCMenu with the following url: https://circleci.com/gh/poanetwork/poa-explorer.cc.xml?circle-token=f8823a3d0090407c11f87028c73015a331dbf604
- Build the assets:
$ cd assets && yarn build - Format the Elixir code:
$ mix format - Run the test suite:
$ mix test - Lint the Elixir code:
$ mix credo --strict - Run the dialyzer:
mix dialyzer --halt-exit-status - Check the Elixir code for vulnerabilities:
$ mix sobelow --config - Lint the JavaScript code:
$ cd assets && yarn eslint
The app is currently internationalized. It is only localized to U.S. English.
To translate new strings, run $ mix gettext.extract --merge and edit the new strings in priv/gettext/en/LC_MESSAGES/default.po.
- Fork it ( https://github.com/poanetwork/poa-explorer/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Write tests that cover your work
- Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request