Skip to content

BenchCore/bench-testnet-explorer

Repository files navigation

Bench Testnet Explorer

You can access it at https://tex.benchcore.io/.

Build Setup

1. Clone the repository

git clone https://github.com/benchcore/bench-testnet-explorer && cd bench-testnet-explorer

2. Install Dependencies

yarn install

3.Build For Production

yarn build:texnet

Build For GitHub Pages

If you are going to host your explorer instance on GitHub Pages you will need to specify your base url in most cases as GitHub Pages serves repositories from sub-directories instead of sub-domains.

yarn build --base https://username.github.io/repository/

A running instance of the explorer on GitHub Pages can be found at https://benchcore.github.io/bex-explorer.

This step is not required if you are hosting the explorer on your "root" repository which is usually your username https://username.github.io/.

3.5 Run Express Server

You can run the explorer as an express server. This makes it a little more light-weight but not needing to have services such as apache or nginx.

EXPLORER_HOST="127.0.0.1" EXPLORER_PORT="4200" node express-server.js

4. History Mode

If you wish to remove the /#/ from your URLs you can follow those steps https://router.vuejs.org/en/essentials/history-mode.html.

4.1 Build

yarn build:texnet --history

4.2 Development

yarn dev --env.routerMode=history

Keep in mind that this requires you to run your own server and a running instance of nginx.

5. Development

yarn dev # or yarn dev:texnet

Change Router Mode

yarn dev --env.routerMode=history

6. Testing

$ yarn test

Credits

License

MIT © Distributed Webs Project, LLC.

About

Blockchain Explorer For The Bench Testnet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published