ftx / explorer

A Helium Blockchain Explorer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Helium Blockchain Explorer

Code that powers the official Helium Blockchain Explorer.

Development and Contribution

Any and all contributions from the community are encouraged.

  • Guidelines for how to contribute to this repository are here.
  • Discussion about the development and usage of the Helium Blockchain Explorer takes place in the official Helium Discord Server, specifically in the #explorer-dev channel. Join us!
  • For a list of issues and prioritization, please go to our Project page.

Getting Started

  1. First, clone the repository to your local machine and navigate into the folder. For example:
git clone https://github.com/helium/explorer.git
cd explorer
  1. Second, install all the dependencies:
yarn
  1. Edit your environment variables
NEXT_PUBLIC_MAPBOX_KEY=pk.ey[...the rest of your access token...]
  • Rename the file ".env" (delete ".sample" from the file name)
  1. Then run the development server:
yarn dev
# or
npm run dev

And open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file and save your changes.

  1. Create a new logically-named branch. For example:
git checkout -b witness-list-enhancements
  1. Push your changes to GitHub and create a PR against the master branch, linking the PR to any relevant issues.

Deploy with Docker

docker build -t helium-explorer .
docker run -e NEXT_PUBLIC_MAPBOX_KEY="CHANGE_ME" -p 3000:3000 helium-explorer

You need to adapt your NEXT_PUBLIC_MAPBOX_KEY to run this container

Questions

If you run into any issues or you have any questions about how to get started contributing, feel free to reach out on the #explorer-dev channel in the official Helium Community Discord server!

Learn More

This is a Next.js project.

To learn more about Next.js, take a look at the following resources:

About

A Helium Blockchain Explorer

License:Apache License 2.0


Languages

Language:JavaScript 95.9%Language:CSS 4.0%Language:Dockerfile 0.1%Language:Shell 0.0%