Code Monkey home page Code Monkey logo

librabrowser's Introduction

LibraBrowser

A Block Explorer for the Libra Blockchain TestNet. See: https://librabrowser.io

Features

  • Account View
  • Version View, including gas spend and program info as well as information useful to debug the network
  • A Faucet that sends the funds as p2p transaction
  • Network Statistics
  • RPC based client to read data
  • DB store of transactions
  • Search by account or version
  • Simple Libra client automation (soon to be deprecated)

Installation

  1. Run: pip3 install grpcio grpcio-tools hexdump Flask Flask-Caching sqlalchemy psycopg2 requests
  2. Have access to a Postgres Database server

Database

  • Default config assumes a postgresql database with:
    • username = postgres
    • password = postgres
    • host = localhost
    • port = 5432
    • database name = libra_browser
    • Please see SQLAlchemy Docs for configuration options
  • make sure that /etc/postgresql/<PGSQL_VERSION>/main/pg_hba.conf has the configuration of password, i.e. auth method md5 and not peer:

local all postgres md5

  • To create the DB after installing postgresql you can run: sudo -u postgres createdb libra_browser

Running the project

At the root project folder execute the command:

python3 Browser.py

Or to execute and leave it to run with output redirected to a file execute:

nohup python3 Browser.py &> browser.log < /dev/null &
tail -f browser.log #if you want to see the logs

To use "DEVELOPMENT" mode settings set the environment variable "BROWSER=DEVELOPMENT"

Contributing

Please see Contributing.md

Credits

rpc support is based on: https://github.com/egorsmkv/libra-grpc-py
Contributors:

librabrowser's People

Contributors

disk-in avatar d1sk1n avatar disk1n avatar gdbaldw avatar

Watchers

James Cloos avatar

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.