Git Product home page Git Product logo

explorer-classic's Introduction

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 🍻

explorer-classic's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.