Git Product home page Git Product logo

0l-explorer's Introduction

0L Blockchain Explorer

Explore 0L addresses and transactions

React webapp using next.js

Setup

Install docker and docker-compose

Launch Dev Environment

Set an active upstream node hostname in docker-compose.yml for NODE_HOSTNAME

Launch Application

docker-compose up

Now browse to http://localhost:3027 in your browser

  • Frontend files have hot reload. You should see changes without needing to refresh the browser, unless it is a change to getServerSideProps (the server side render) or requires a specific sequence of events to set the proper state.

  • If changes are made to server-side files, the app will restart.

docker-compose down
docker-compose up

Re-build docker image

If node_modules are changed or Dockerfile is modified, re-build the image with:

docker-compose build

Build for production

Build for current architecture only

docker build --no-cache -t 0l-explorer .

Now distribute the 0lexplorer:latest docker image to your desired container orchestration platform.

Build cross platform (i.e. for ARM for AWS Gravitron)

# CONTAINER_IMAGE is env var pointing to container repository, e.g. AWS ECR
docker buildx build --platform linux/amd64,linux/arm64 -t $CONTAINER_IMAGE . --push

An example kubernetes template file is provided in 0l-explorer.yml.

Replace $NODE_HOSTNAME$, $CONTAINER_IMAGE$, $PERMISSION_TREE_API_URL$ and $GA_MEASUREMENT_ID$ in the template with valid values for the node to use for RPC calls, the container repository URL, the permission tree API host, and Google Analytics Measurement ID, respectively.

It can be deployed with:

kubectl apply -f 0l-explorer.yml

Donations

If you would like to contribute to this project financially, please send to one of the following addresses:

  • 0L (GAS) - b3b77d203bf13c97626137b2ca9d981d
  • Cosmos (ATOM) - cosmos1zq3r93gs6smvxvmflwwppe930p4wcrc7nwlcp0

0l-explorer's People

Contributors

agouin avatar ashiiix 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.