Skip to content
This repository was archived by the owner on Apr 27, 2022. It is now read-only.

livepeer/explorer-classic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Livepeer Explorer Classic

Discord GitHub issues

Note: This project is not actively maintained.

The original livepeer protocol explorer for the web. It allows users to see general information about the protocol and specific information about Eth addresses within the protocol. See it live at classic.explorer.livepeer.org

Table of Contents

Installation

Run yarn from the root of the monorepo.

Once you've done that, you're all set! ✨

Developing

If you want to hack on this app, just run:

yarn start

Be sure to watch the output and follow the instructions on the command line.

Once the app is available (most likely at http://localhost:3000), you are free to edit files in the src directory. The app will rebuild and update as you make changes.

This project is bootstrapped with create-react-app, so all of their documentation applies here as well.

Project Structure

.
├── public/
|   ├── .
|   └── index.html
└── src
    ├── index.js
    ├── registerServiceWorker.js
    ├── store.js
    ├── utils.js
    ├── components/
    ├── containers/
    ├── electron/
    ├── enhancers/
    ├── services/
    └── views/
Directory Description
. config files: .prettierrc, .gitignore, package.json, README.md, etc
public/. assets (images, fonts, etc) go here
public/index.html the app's html entrypoint
src/index.js the app's js entrypoint
src/registerServiceWorker.js default CRA service worker registration script
src/store.js [DEPRECATED] creates browser or memory history, imports redux services, registers the devtools extension, applies middleware, and creates the store
src/utils.js helper functions that get used across the app
src/components/ contains react components that are used in multiple views and/or containers
src/containers/ home of the Root component (wraps the app in any required providers) and the App component (hooks up views to routes via react-router)
src/electron/ this is where the electron app's main process file abides.
src/enhancers/ HOCs that wrap multiple components and/or views
src/services/ [DEPRECATED] redux services live here
src/views/ the app's views go here

Building

You can build this app as a website or as a desktop app (via electron).

  • Website: yarn build:web (outputs to ./build)
  • Desktop: yarn build:desktop (outputs to ./dist)

Note: Only the OSX desktop build has been configured. If you would like to add a configuration for linux or windows, please modify the config accordingly in package.json, and file a PR 🍻

Customizing A Build

In either case, here are some environment variables you can use to customize the build:

Variable Default Description
NODE_ENV development yarn start always sets this to development and yarn build will always set this to production. You should not have to modify this variable
PUBLIC_URL / The root url of the site (only applies to production builds)
REACT_APP_HTTP_PROVIDER By default, the app will use the Livepeer testnet provider (https://ethrpc-testnet.livepeer.org), but this option allows you to specify a custom Ethereum http provider. You may want to use one of the following:
infura.io - https://<network>.infura.io/<your-token>
local geth/testrpc - http://localhost:8545
REACT_APP_CONTROLLER_ADDRESS Set a custom controller address (Livepeer smart contract entry point)
GA_TRACKING_ID The Google Analytics tracking id to use (production environment only)

Need a new variable? Create a PR or file an issue 🍻

About

Livepeer Explorer Classic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors