Git Product home page Git Product logo

thornode-network's Introduction

Thornode Monitor

There are several moving parts to this dashboard

  1. Front end:
  • This is all the code in this repository, minus the lambda functions folder
  • Built using react
  • It calls an AWS API Gateway to collect data which it then displays
  1. Back end:
  • Several parts to the backend

    1. AWS RDS database to store all the data
    2. AWS Lambda functions which collect the data and also provides the function for the api call
    3. AWS API Gateway which invokes one of the lambda functions to return the data to the front end
  • Back end lambda functions are in the 'lambda functions' folder, they consist of

    1. thormonitor_collect_data2: This function stores data about the nodes, ie bond, slash points status etc... into the DB
    2. thormonitor_collect_data_rpc_bifrost: This function checks the RPC and Bifrost API of each node and stores in the DB
    3. thornode_collect_data_global: This function stores info like block time per second and data from coingecko into the DB
    4. thormonitor: This is the lambda function which is invoked by the API call to return all the data to the front end from the DB

How to build:

  1. ~ git clone https://github.com/thorchain/thornode-network.git
  2. ~ cd thornode-network
  3. ~ npm install
  4. Upload the 4 functions to lambda and set them up to run every 1 minute except for the thormonitor code.
  5. Create an AWS API Gateway that invokes thormonitor lambda function
  6. Create aws-export.js in the src folder and enter the details of your AWS API Gateway
  7. If your have populated your database with some data, all you need to do is '~ npm run start' and the front end should start pulling and displaying the data

thornode-network's People

Contributors

thornode avatar thorchain-admin 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.