GithubHelp home page GithubHelp logo

delta1 / blockchain-explorer-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tari-project/blockchain-explorer-api

0.0 2.0 0.0 359 KB

A Tari block explorer API

JavaScript 93.79% Dockerfile 2.64% Shell 2.94% HTML 0.63%

blockchain-explorer-api's Introduction

Tari Blockchain Explorer API

Development

The Express API requires a Redis and Tari base node instance.

cp .env.sample .env
# Change GRPC_URL from tari:18142 to localhost:18142.
# Change REDIS_URL from redis://redis:6379 to redis://localhost:6379.
cp .env.docker.frontend.sample .env.docker.frontend
docker-compose up -d redis
docker-compose up -d tari
npm install
npm run dev
# Use `NO_CRON=1 npm run dev` to stop the cronjobs from running.

Notes: If you already have an existing setup and need to clear out the data (for instance due to a network change) you need to do the following:

docker stop blockchain-explorer-api_tari_1
cd _data
rm -rf tari
docker exec -it blockchain-explorer-api_redis_1 redis-cli FLUSHALL
docker stop blockchain-explorer-api_redis_1
rm -rf redis

If you are testing new code for the base node against the blockchain explorer locally, you can build the tari image dependency with the following (from the root of the tari repository):

cd buildtools
docker build  -t quay.io/tarilabs/tari_base_node:latest -f base_node.Dockerfile ..

Deployment

Set your env's for the frontend in .env.docker.frontend REACT_APP_EXPLORER_API_URL=https://explorer.example.com

docker-compose up -d

blockchain-explorer-api's People

Contributors

cjs77 avatar coka avatar dependabot[bot] avatar krakaw avatar sdbondi avatar shanimal08 avatar striderdm avatar stringhandler avatar

Watchers

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